Skip to content

Commit

Permalink
Fix pypi test (#547)
Browse files Browse the repository at this point in the history
* fix pypi tests, drop macos 12
  • Loading branch information
gijzelaerr authored Nov 2, 2024
1 parent e3aff06 commit cd9096f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/osx-build-test-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

osx-build:
name: Build wheel for OSX
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -46,13 +46,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["macos-12", "macos-13", "macos-14", "macos-15"]
os: ["macos-13", "macos-14", "macos-15"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

exclude:
- os: "macos-12"
python-version: "3.13"

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/osx-test-with-brew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ jobs:
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
runs-on: ["macos-12", "macos-13", "macos-14", "macos-15"]
exclude:
- os: "macos-12"
python-version: "3.13"
runs-on: ["macos-13", "macos-14", "macos-15"]

runs-on: ${{ matrix.runs-on }}
steps:
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
needs: publish-to-testpypi
strategy:
matrix:
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-12", "macos-13", "macos-14", "macos-15", "windows-2019", "windows-2022"]
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-13", "macos-14", "macos-15"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
Expand All @@ -69,3 +69,24 @@ jobs:
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]
test-pypi-package-windows:
runs-on: ${{ matrix.os }}
needs: publish-to-testpypi
strategy:
matrix:
os: ["windows-2019", "windows-2022"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: install python-snap7
run: |
pip.exe install --upgrade pip
pip.exe install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]
23 changes: 22 additions & 1 deletion .github/workflows/publish-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
needs: publish-to-testpypi
strategy:
matrix:
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-12", "macos-13", "macos-14", "macos-15", "windows-2019", "windows-2022"]
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-13", "macos-14", "macos-15"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
Expand All @@ -72,3 +72,24 @@ jobs:
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]
test-pypi-package-windows:
runs-on: ${{ matrix.os }}
needs: publish-to-testpypi
strategy:
matrix:
os: ["windows-2019", "windows-2022"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: install python-snap7
run: |
pip.exe install --upgrade pip
pip.exe install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]

0 comments on commit cd9096f

Please sign in to comment.