Skip to content

Commit ceb2681

Browse files
committed
TST,CI: Add workflow to check sdist.
1 parent eb831f4 commit ceb2681

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
@@ -122,3 +122,37 @@ jobs:
122122
run: |
123123
make -C doc html SPHINXOPTS="-nT"
124124
make -C doc latexpdf SPHINXOPTS="-nT"
125+
126+
test-sdist:
127+
runs-on: ${{ matrix.os }}-latest
128+
strategy:
129+
matrix:
130+
os: [ubuntu]
131+
python-version: ["3.12", "3.13", "3.14"]
132+
steps:
133+
- uses: actions/checkout@v5
134+
135+
- name: Python setup
136+
uses: actions/setup-python@v6
137+
with:
138+
python-version: ${{ matrix.python-version }}
139+
140+
- name: Setup environment
141+
run: |
142+
python -m pip install --upgrade pip wheel setuptools build
143+
python -m pip list
144+
145+
- name: Install dependencies
146+
run: |
147+
python -m pip install --group test --group doc
148+
pip list
149+
150+
- name: Install numpydoc from source tarball
151+
run: |
152+
python -m build
153+
python -m pip install --no-binary numpydoc dist/*.tar.gz
154+
pip list
155+
156+
- name: Run test suite
157+
run: |
158+
pytest -v --pyargs numpydoc

0 commit comments

Comments
 (0)