Skip to content

Commit 2bc761b

Browse files
committed
Test sdist installs and works on all platforms
1 parent 2d63b1e commit 2bc761b

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

‎.github/workflows/code.yml‎

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
CIBW_ENVIRONMENT: PIP_USE_DEPRECATED=out-of-tree-build
8686
CIBW_BUILD: ${{ matrix.python }}*64
8787
CIBW_TEST_EXTRAS: dev
88-
CIBW_TEST_COMMAND: pytest {project}/tests --cov-report xml:${{ matrix.cov_file }} --junit-xml=${{ matrix.results_file }}
88+
CIBW_TEST_COMMAND: python -X faulthandler -m pytest -s {project}/tests --cov-report xml:${{ matrix.cov_file }} --junit-xml=${{ matrix.results_file }}
8989
# Disable auditwheel as it isn't compatible with setuptools_dso approach
9090
# https://github.com/mdavidsaver/setuptools_dso/issues/17
9191
CIBW_REPAIR_WHEEL_COMMAND: ""
@@ -129,8 +129,28 @@ jobs:
129129
with:
130130
files: artifacts/**/*.xml
131131

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

0 commit comments

Comments
 (0)