Commit d77db4cc authored by Michael Davidsaver's avatar Michael Davidsaver

ci: test from sdist

parent 176bb6d3
......@@ -2,6 +2,10 @@ name: setuptools-dso
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
test:
runs-on: ${{ matrix.os }}
......@@ -27,25 +31,32 @@ jobs:
python --version
python -m pip --version
- name: Test
run: pip install -v .
- name: Test Example inplace
run: |
# capture other deps
pip download -d dist setuptools wheel
python setup.py sdist --formats=gztar
ls dist
# build from source tar to ensure completeness
pip install -v --no-index -f dist setuptools_dso
- name: Test Example wheel
run: |
ls dist
cd example
python setup.py clean -a
git clean -fdx .
python setup.py -v build_dso -i
python setup.py -v build_dso -i -f # incremental recompile
python setup.py -v build_ext -i
(cd src && python -m dsodemo.cli)
pip install -v --no-index -f ../dist .
cd ..
- name: Test Example wheel
python -m dsodemo.cli
- name: Test Example inplace
run: |
cd example
python setup.py clean -a
git clean -fdx .
pip install -v .
python setup.py -v build_dso -i
python setup.py -v build_dso -i -f # incremental recompile
python setup.py -v build_ext -i
(cd src && python -m dsodemo.cli)
cd ..
python -m dsodemo.cli
upload:
runs-on: ubuntu-latest
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment