From 42a06cd573c94289ad12aa2d43ce103f89a8af5c Mon Sep 17 00:00:00 2001 From: RobertoRoos Date: Tue, 24 Sep 2024 10:47:07 +0200 Subject: [PATCH] Added test of produced artifacts --- .github/workflows/packaging.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index c49f7706..cde6dba4 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -52,3 +52,26 @@ jobs: with: name: package-all path: dist + + test_artifacts: + name: Test distributions + needs: make_artifact + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, windows-latest, macos-latest ] + + steps: + - uses: actions/download-artifact@v4 + with: + name: package-all + path: dist + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + # Now install the package from the local wheels and try to use it: + - run: | + pip install pyads --no-index --find-links file://dist + python -c "import pyads; pyads.Connection(ams_net_id='127.0.0.1.1.1', ams_net_port=851)"