Skip to content

Commit d0612e0

Browse files
committed
Fix workflow run
1 parent 04333b8 commit d0612e0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
source =
3-
diffpy/pdfmorph/
3+
src/diffpy/pdfmorph/
44
[report]
55
omit =
66
*/python?.?/*

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050
shell: bash -l {0}
5151
run: |
5252
conda activate test
53-
coverage run run_tests.py
53+
python -m coverage run run_tests.py # use `python -m` to search for modules within env
5454
coverage report -m
5555
codecov

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ classifiers = [
3535
Homepage = "https://github.com/diffpy/diffpy.pdfmorph/"
3636
Issues = "https://github.com/diffpy/diffpy.pdfmorph/issues"
3737

38+
[tool.pytest.ini_options]
39+
pythonpath = ["src"]
40+
3841
[tool.setuptools-git-versioning]
3942
enabled = true
4043
template = "{tag}"

0 commit comments

Comments
 (0)