Skip to content

Commit ef0dc85

Browse files
authored
Merge pull request #271 from CABLE-LSM/270-switch-to-src-layout
Switch to src layout
2 parents f19781b + 59910ed commit ef0dc85

31 files changed

+24
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
- name: Test with pytest
3232
run: |
3333
conda install pytest-cov
34+
pytest
35+
- name: Generate coverage reports
36+
run: |
37+
conda remove --force benchcab
38+
pip install -e .
3439
pytest --cov=./ --cov-report=xml
3540
- name: Upload coverage reports to Codecov
3641
uses: codecov/codecov-action@v3

setup.cfg

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,25 @@ console_scripts =
1616
benchcab=benchcab.main:main
1717

1818
[tool:pytest]
19-
addopts = --doctest-modules --doctest-glob='*.rst' --ignore setup.py --ignore conftest.py --ignore docs/conf.py
19+
testpaths = tests
20+
addopts =
21+
--doctest-modules
22+
--doctest-glob='*.rst'
23+
--ignore setup.py
24+
--ignore conftest.py
25+
--ignore docs/conf.py
26+
--import-mode=importlib
27+
28+
[coverage:report]
29+
include = src/*
30+
31+
[options]
32+
package_dir=
33+
=src
34+
packages=find:
35+
36+
[options.packages.find]
37+
where=src
2038

2139
[options.package_data]
2240
benchcab =
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)