Remove requirements.txt
, use Pipfile
instead
#65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: python | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
PYTHON_VERSION: "3.10.0" | |
jobs: | |
python: | |
runs-on: ubuntu-20.04 | |
name: python | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install pipenv | |
run: pip install pipenv | |
- name: install dependencies | |
run: pipenv install --dev | |
- name: run black formatter | |
run: pipenv run black --check . | |
- name: run flake8 linter | |
# Ignore linting errors that the black formatter is opiniated about | |
run: pipenv run flake8 --ignore E501,W503 . | |
- name: run bandit security scan | |
run: pipenv run bandit -r . |