Skip to content

Commit

Permalink
Add checks for the wheels and a simple test command
Browse files Browse the repository at this point in the history
  • Loading branch information
nightlark committed Feb 3, 2024
1 parent bf6e37a commit dd4fdd9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,20 @@ jobs:
name: apps-python-sdist
path: helics_apps-pip/dist/*.tar.gz

publish-helics_apps:

check_helics_appcs-dist:
name: Check helics_apps Python packages
needs: [build-helics_apps, build-helics_apps-sdist]
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- run: pipx run twine check --strict dist/*

publish-helics_apps:
needs: [build-helics_apps, build-helics_apps-sdist, check_helics_appcs-dist]
runs-on: ubuntu-latest
if: github.event.action == 'published' || endsWith(github.ref, 'main')
environment:
Expand Down
5 changes: 5 additions & 0 deletions helics_apps-pip/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ helics_broker_server = "helics_apps:helics_broker_server"
helics_player = "helics_apps:helics_player"
helics_recorder = "helics_apps:helics_recorder"

[tool.cibuildwheel]
test-command = [
"helics_app --version",
]

[tool.scikit-build]
minimum-version = "0.8"
cmake.version = ">=3.15"
Expand Down

0 comments on commit dd4fdd9

Please sign in to comment.