Skip to content

Commit

Permalink
fixing pytest dependencies in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Respheal committed Nov 22, 2023
1 parent 062e4a9 commit e17ed14
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements.txt ] && [ -f requirements/pytest.txt]; then pip install -r requirements.txt -r requirements/pytest.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
13 changes: 4 additions & 9 deletions api/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
bandit
black
flake8
isort
mypy
pytest
pytest-cov
toml
httpx
-r requirements/bandit.txt
-r requirements/flake.txt
-r requirements/mypy.txt
-r requirements/pytest.txt
1 change: 1 addition & 0 deletions api/requirements/bandit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bandit[toml]
3 changes: 3 additions & 0 deletions api/requirements/flake.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
black
flake8
isort
1 change: 1 addition & 0 deletions api/requirements/mypy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mypy
3 changes: 3 additions & 0 deletions api/requirements/pytest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pytest
pytest-cov
httpx

0 comments on commit e17ed14

Please sign in to comment.