Skip to content

Commit a5e0963

Browse files
committed
Added test of produced artifacts
1 parent 7692b41 commit a5e0963

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/packaging.yml

+41
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,44 @@ jobs:
5252
with:
5353
name: package-all
5454
path: dist
55+
56+
test_artifacts:
57+
name: Test distributions
58+
needs: make_artifact
59+
runs-on: ${{ matrix.os }}
60+
strategy:
61+
matrix:
62+
os: [ ubuntu-latest, macos-latest ]
63+
# Can't really test with Windows because 'TcAdsDll.dll' will be missing
64+
65+
steps:
66+
- uses: actions/download-artifact@v4
67+
with:
68+
name: package-all
69+
path: dist
70+
71+
- uses: actions/setup-python@v5
72+
with:
73+
python-version: "3.12"
74+
75+
# Now install the package from the local wheels and try to use it:
76+
- run: |
77+
pip install pyads --no-index --find-links ./dist
78+
python -c "import pyads; pyads.Connection(ams_net_id='127.0.0.1.1.1', ams_net_port=851)"
79+
80+
test_editable:
81+
name: Test editable install
82+
runs-on: ubuntu-latest
83+
84+
steps:
85+
- uses: actions/checkout@v4
86+
with:
87+
submodules: "true"
88+
89+
- uses: actions/setup-python@v5
90+
with:
91+
python-version: "3.12"
92+
93+
- run: |
94+
pip install -e . -vv
95+
python -c "import pyads; pyads.Connection(ams_net_id='127.0.0.1.1.1', ams_net_port=851)"

0 commit comments

Comments
 (0)