Skip to content

Commit

Permalink
Added test of produced artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoRoos committed Sep 24, 2024
1 parent 7692b41 commit d944b8c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

0 comments on commit d944b8c

Please sign in to comment.