Skip to content

Commit 6ffdeb9

Browse files
committed
Add check to CI too
1 parent 935f3f9 commit 6ffdeb9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,19 @@ jobs:
235235
uv build
236236
# Just in case, undo the changes to `pyproject.toml`
237237
git restore --staged . && git restore .
238-
- name: Check build
238+
- name: Check included files in source distribution
239239
run: |
240240
tar -tvf dist/example_fgen_basic-*.tar.gz --wildcards '*example_fgen_basic/py.typed'
241241
tar -tvf dist/example_fgen_basic-*.tar.gz --wildcards 'example_fgen_basic-*/LICENCE'
242+
- name: Check source distribution can be used for installation
243+
run: |
244+
cd dist
245+
ls
246+
python3 -m venv venv
247+
# TODO: alter for windows
248+
source venv/bin/activate
249+
pip install example_fgen_basic*
250+
python -c 'from example_fgen_basic.get_wavelength import get_wavelength_plain; print(get_wavelength_plain(23.4))'
242251
243252
check-dependency-licences:
244253
strategy:

0 commit comments

Comments
 (0)