Skip to content

Commit 012a48f

Browse files
committed
make build test build explicit
1 parent bde7668 commit 012a48f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,12 @@ jobs:
9595
with:
9696
package-dir: "packages/basemap"
9797
output-dir: "packages/basemap/dist"
98+
9899
- name: Run unittests
99-
run: pytest packages/basemap/
100+
run: |
101+
python -m pip install -e "packages/basemap[test]"
102+
cd packages/basemap
103+
python -m pytest
100104
101105
- uses: actions/upload-artifact@v4
102106
with:

packages/basemap/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ requires = [
44
'wheel',
55
'numpy == 2.0.0',
66
'cython >= 0.29.31, < 3.1',
7-
'pytest'
87
]
98
build-backend = "setuptools.build_meta"
9+
[tool.setuptools.extras_require]
10+
test = [
11+
"pytest"
12+
]

0 commit comments

Comments
 (0)