Skip to content

Commit

Permalink
added test-requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
paolap committed Aug 8, 2024
1 parent 54cc2d8 commit 3302566
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mopper-pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
pip install -e .
- name: Test with pytest
run: |
conda install pytest coverage codecov --solver classic
conda install pytest pyfakefs coverage codecov --solver classic
conda run python -m pytest
conda run coverage run --source src -m py.test
- name: Upload to codecov
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["version", "dependencies"]
dynamic = ["version", "dependencies", "optional-dependencies"]

[tool.setuptools-git-versioning]
enabled = true
Expand All @@ -36,6 +36,7 @@ mopdb = "mopdb.mopdb:mopdb_catch"

[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
optional-dependencies.test = { file = ["test-requirements.txt"] }

[tool.setuptools.packages.find]
where = ["src"]
Expand Down
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pytest
pyfakefs

0 comments on commit 3302566

Please sign in to comment.