Skip to content

Commit 574d582

Browse files
committed
Test sdist installs and works on all platforms
1 parent d405e88 commit 574d582

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/code.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ jobs:
8686
CIBW_BUILD: ${{ matrix.python }}*64
8787
CIBW_TEST_EXTRAS: dev
8888
CIBW_TEST_COMMAND: pytest {project}/tests --cov-report xml:${{ matrix.cov_file }} --junit-xml=${{ matrix.results_file }}
89+
# Run with faulthandler and -s in the hope we get a stack trace on seg fault on windows...
90+
CIBW_TEST_COMMAND_WINDOWS: python -X faulthandler -m pytest -s {project}/tests --cov-report xml:${{ matrix.cov_file }} --junit-xml=${{ matrix.results_file }}
8991
# Disable auditwheel as it isn't compatible with setuptools_dso approach
9092
# https://github.com/mdavidsaver/setuptools_dso/issues/17
9193
CIBW_REPAIR_WHEEL_COMMAND: ""
@@ -129,8 +131,28 @@ jobs:
129131
with:
130132
files: artifacts/**/*.xml
131133

132-
release:
134+
sdist:
133135
needs: [build]
136+
strategy:
137+
fail-fast: false
138+
matrix:
139+
os: [ubuntu-latest, windows-latest, macos-latest]
140+
python: [cp36, cp37, cp38, cp39, cp310]
141+
142+
runs-on: ${{ matrix.os }}
143+
144+
steps:
145+
- uses: actions/download-artifact@v2
146+
with:
147+
name: dist
148+
path: dist
149+
150+
- name: Install sdist in a venv and check cli works
151+
run: pipx run --spec dist/*.tar.gz pythonSoftIOC --version
152+
shell: bash
153+
154+
release:
155+
needs: [build, sdist]
134156
runs-on: ubuntu-latest
135157
# upload to PyPI and make a release on every tag
136158
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')

0 commit comments

Comments
 (0)