Skip to content

Commit

Permalink
Simplify requirements
Browse files Browse the repository at this point in the history
Also adds missing `pytest-cov` to `test`
  • Loading branch information
ManicJamie committed Apr 28, 2024
1 parent 5fc4578 commit ceee459
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -36,7 +35,7 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Interactive install
run: |
python -m pip install -e .
python -m pip install -e .[test]
- name: Test with pytest
env:
HORNET_PHPSESSID: ${{secrets.HORNET_PHPSESSID}}
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ packages = [
[project.optional-dependencies]
test = [
"pytest",
"pytest-asyncio"
"pytest-asyncio",
"pytest-cov"
]

[project.urls]
Expand Down
13 changes: 0 additions & 13 deletions requirements.txt

This file was deleted.

0 comments on commit ceee459

Please sign in to comment.