From 5b783e3e422e7544b869ddc888eac57ae450e556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Garc=C3=ADa=20Crespo?= Date: Mon, 16 Dec 2024 12:01:26 +0100 Subject: [PATCH] Test wheel installation --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa84b08..9b0ba47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,3 +30,13 @@ jobs: python3 -m build setuptools-golang-build-manylinux-wheels --golang=1.23.4 --pythons=cp39-cp39 python3 -m twine check --strict dist/* + - name: Test wheel installation + shell: bash + run: | + python3 -m venv test_env + source test_env/bin/activate + pip install dist/*.whl + python -c "import pygfried; print('Version:', pygfried.version())" + - name: Upload distribution packages to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')