Skip to content

Commit

Permalink
try to get pypi test working again
Browse files Browse the repository at this point in the history
  • Loading branch information
gijzelaerr committed Jul 5, 2024
1 parent fe1f2ca commit 531d412
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: "Download Linux/amd64 artifacts"
uses: dawidd6/action-download-artifact@v6
with:
workflow: osx-build-test-amd64.yml
workflow: linux-build-test-amd64.yml
path: .
- name: "Download Linux/arm64 artifacts"
uses: dawidd6/action-download-artifact@v6
Expand All @@ -45,14 +45,12 @@ jobs:
with:
path: dist
- name: show dist layout
run: |
ls -al
ls -al dist
find dist
run: find dist
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
test-pypi-packages:
runs-on: ${{ matrix.os }}
needs: publish-to-testpypi
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/windows-build-test-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ jobs:
mkdir -p snap7/lib/
Copy-Item .\snap7-full-1.4.2\release\Windows\Win64\snap7.dll .\snap7\lib
python3 -m build . --wheel -C="--build-option=--plat-name=win_amd64"
mkdir -p wheelhouse/${{ runner.os }}/
cp dist/*.whl wheelhouse/${{ runner.os }}/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: wheels-${{ runner.os }}
path: wheelhouse/${{ runner.os }}/*.whl
name: dist
path: dist/*.whl

windows-test-amd64:
name: Testing wheels for AMD64 windows
Expand All @@ -49,13 +47,13 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: wheels-${{ runner.os }}
path: wheelhouse
name: dist
path: dist

- name: Install python-snap7
run: |
python3 -m pip install --upgrade pip pytest
python3 -m pip install $(ls wheelhouse/*.whl)
python3 -m pip install dist/*.whl
- name: Run pytest
run: |
Expand Down

0 comments on commit 531d412

Please sign in to comment.