Skip to content

Commit

Permalink
Merge pull request #271 from CABLE-LSM/270-switch-to-src-layout
Browse files Browse the repository at this point in the history
Switch to src layout
  • Loading branch information
SeanBryan51 authored Mar 21, 2024
2 parents f19781b + 59910ed commit ef0dc85
Show file tree
Hide file tree
Showing 31 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
- name: Test with pytest
run: |
conda install pytest-cov
pytest
- name: Generate coverage reports
run: |
conda remove --force benchcab
pip install -e .
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
20 changes: 19 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,25 @@ console_scripts =
benchcab=benchcab.main:main

[tool:pytest]
addopts = --doctest-modules --doctest-glob='*.rst' --ignore setup.py --ignore conftest.py --ignore docs/conf.py
testpaths = tests
addopts =
--doctest-modules
--doctest-glob='*.rst'
--ignore setup.py
--ignore conftest.py
--ignore docs/conf.py
--import-mode=importlib

[coverage:report]
include = src/*

[options]
package_dir=
=src
packages=find:

[options.packages.find]
where=src

[options.package_data]
benchcab =
Expand Down
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.
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 comments on commit ef0dc85

Please sign in to comment.