diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index c49f770..262e0fa 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -52,3 +52,43 @@ 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 ./dist + python -c "import pyads; pyads.Connection(ams_net_id='127.0.0.1.1.1', ams_net_port=851)" + + test_editable: + name: Test editable install + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: "true" + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - run: | + pip install -e . -vv + python -c "import pyads; pyads.Connection(ams_net_id='127.0.0.1.1.1', ams_net_port=851)"