Skip to content

Commit 63fd558

Browse files
chore/use src layout (#13)
* use src layout * update coverage section of pyproject.toml * Fix test paths in CI workflow for consistency --------- Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
1 parent 24e7aba commit 63fd558

15 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Run tests
5252
run: |
53-
uv run pytest eopf_geozarr/tests/ -v --tb=short -m "not network" --cov=eopf_geozarr --cov-report=xml --cov-report=term-missing
53+
uv run pytest tests/ -v --tb=short -m "not network" --cov=eopf_geozarr --cov-report=xml --cov-report=term-missing
5454
5555
- name: Upload coverage to Codecov
5656
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
@@ -105,7 +105,7 @@ jobs:
105105

106106
- name: Run network tests
107107
run: |
108-
uv run pytest eopf_geozarr/tests/ -v --tb=short -m "network"
108+
uv run pytest tests/ -v --tb=short -m "network"
109109
110110
security:
111111
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Documentation = "https://github.com/developmentseed/eopf-geozarr/tree/main/docs"
7777
eopf-geozarr = "eopf_geozarr.cli:main"
7878

7979
[tool.setuptools.packages.find]
80-
where = ["."]
80+
where = ["src"]
8181
include = ["eopf_geozarr*"]
8282

8383
[tool.setuptools.package-data]
@@ -140,8 +140,11 @@ markers = [
140140
]
141141

142142
[tool.coverage.run]
143-
source = ["."]
144-
omit = ["*/tests/*", "*/test_*", "setup.py"]
143+
source = ["src"]
144+
omit = [
145+
"tests/*",
146+
"setup.py",
147+
]
145148

146149
[tool.coverage.report]
147150
exclude_lines = [

0 commit comments

Comments
 (0)