Skip to content

Commit

Permalink
Move test dependencies into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed Jan 22, 2024
1 parent 457275e commit 9216027
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ jobs:
python-version: 3.9
- name: Install package
run: |
pip install -e .
pip install -e .[test]
- name: Lint with flake8
run: |
pip install flake8
flake8 batdata/ scripts/
flake8 batdata/ scripts/ tests
- name: Test with pytest
run: |
pip install -r test-requirements.txt
pytest batdata
pytest --cov=batdata tests
- name: Coveralls
run: |
pip install coveralls
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ scythe-extractors = "^0.1"
tqdm = "*"
xlrd = "*"

[tool.poetry.group.test.dependencies]
pytest = "^6.0.0"
pytest-cov = "*"

[tool.poetry.scripts]
batdata-convert = "batdata.cli:main"

Expand Down
2 changes: 0 additions & 2 deletions test-requirements.txt

This file was deleted.

0 comments on commit 9216027

Please sign in to comment.