forked from gijzelaerr/python-snap7
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1016 Bytes
/
windows-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Windows Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
windows_wheel:
strategy:
matrix:
runs-on: [ "windows-2022", "windows-2019" ]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.runs-on }}
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: Prepare snap7 archive
uses: ./.github/actions/prepare_snap7
- name: Get snap7
run: |
Copy-Item snap7-full-1.4.2\release\Windows\Win64\snap7.dll snap7\.
Copy-Item snap7-full-1.4.2\release\Windows\Win64\snap7.dll C:\Windows\System32\.
- name: Install python libraries
run: python3.exe -m pip install .[test]
- name: Run tests
run: python3 -m pytest -m "server or util or client or mainloop or partner"