Skip to content

Commit 006f2a9

Browse files
committed
TST,CI: Add workflow to check sdist.
1 parent 16a20aa commit 006f2a9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,37 @@ jobs:
182182
- name: Test coverage
183183
run: |
184184
codecov
185+
186+
test-sdist:
187+
runs-on: ${{ matrix.os }}-latest
188+
strategy:
189+
matrix:
190+
os: [ubuntu]
191+
python-version: ["3.12", "3.13", "3.14"]
192+
steps:
193+
- uses: actions/checkout@v5
194+
195+
- name: Python setup
196+
uses: actions/setup-python@v6
197+
with:
198+
python-version: ${{ matrix.python-version }}
199+
200+
- name: Setup environment
201+
run: |
202+
python -m pip install --upgrade pip wheel setuptools build
203+
python -m pip list
204+
205+
- name: Install dependencies
206+
run: |
207+
python -m pip install --group test --group doc
208+
pip list
209+
210+
- name: Install numpydoc from source tarball
211+
run: |
212+
python -m build
213+
python -m pip install --no-binary numpydoc dist/*.tar.gz
214+
pip list
215+
216+
- name: Run test suite
217+
run: |
218+
pytest -v --pyargs numpydoc

0 commit comments

Comments
 (0)