Skip to content

Commit cd9096f

Browse files
authored
Fix pypi test (#547)
* fix pypi tests, drop macos 12
1 parent e3aff06 commit cd9096f

File tree

4 files changed

+47
-12
lines changed

4 files changed

+47
-12
lines changed

.github/workflows/osx-build-test-amd64.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
osx-build:
1111
name: Build wheel for OSX
12-
runs-on: macos-12
12+
runs-on: macos-13
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
@@ -46,13 +46,9 @@ jobs:
4646
runs-on: ${{ matrix.os }}
4747
strategy:
4848
matrix:
49-
os: ["macos-12", "macos-13", "macos-14", "macos-15"]
49+
os: ["macos-13", "macos-14", "macos-15"]
5050
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
5151

52-
exclude:
53-
- os: "macos-12"
54-
python-version: "3.13"
55-
5652
steps:
5753
- name: Checkout
5854
uses: actions/checkout@v4

.github/workflows/osx-test-with-brew.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
12-
runs-on: ["macos-12", "macos-13", "macos-14", "macos-15"]
13-
exclude:
14-
- os: "macos-12"
15-
python-version: "3.13"
12+
runs-on: ["macos-13", "macos-14", "macos-15"]
1613

1714
runs-on: ${{ matrix.runs-on }}
1815
steps:

.github/workflows/publish-pypi.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
needs: publish-to-testpypi
5454
strategy:
5555
matrix:
56-
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-12", "macos-13", "macos-14", "macos-15", "windows-2019", "windows-2022"]
56+
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-13", "macos-14", "macos-15"]
5757
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
5858
steps:
5959
- name: Checkout
@@ -69,3 +69,24 @@ jobs:
6969
python3 -m venv venv
7070
venv/bin/pip install --upgrade pip
7171
venv/bin/pip install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]
72+
73+
test-pypi-package-windows:
74+
runs-on: ${{ matrix.os }}
75+
needs: publish-to-testpypi
76+
strategy:
77+
matrix:
78+
os: ["windows-2019", "windows-2022"]
79+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
80+
steps:
81+
- name: Checkout
82+
uses: actions/checkout@v4
83+
84+
- name: Set up Python ${{ matrix.python-version }}
85+
uses: actions/setup-python@v5
86+
with:
87+
python-version: ${{ matrix.python-version }}
88+
89+
- name: install python-snap7
90+
run: |
91+
pip.exe install --upgrade pip
92+
pip.exe install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]

.github/workflows/publish-test-pypi.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
needs: publish-to-testpypi
5757
strategy:
5858
matrix:
59-
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-12", "macos-13", "macos-14", "macos-15", "windows-2019", "windows-2022"]
59+
os: ["ubuntu-24.04"," ubuntu-22.04", "ubuntu-20.04", "macos-13", "macos-14", "macos-15"]
6060
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6161
steps:
6262
- name: Checkout
@@ -72,3 +72,24 @@ jobs:
7272
python3 -m venv venv
7373
venv/bin/pip install --upgrade pip
7474
venv/bin/pip install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]
75+
76+
test-pypi-package-windows:
77+
runs-on: ${{ matrix.os }}
78+
needs: publish-to-testpypi
79+
strategy:
80+
matrix:
81+
os: ["windows-2019", "windows-2022"]
82+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
83+
steps:
84+
- name: Checkout
85+
uses: actions/checkout@v4
86+
87+
- name: Set up Python ${{ matrix.python-version }}
88+
uses: actions/setup-python@v5
89+
with:
90+
python-version: ${{ matrix.python-version }}
91+
92+
- name: install python-snap7
93+
run: |
94+
pip.exe install --upgrade pip
95+
pip.exe install --extra-index-url https://test.pypi.org/simple/ python-snap7[test]

0 commit comments

Comments
 (0)