forked from gijzelaerr/python-snap7
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 1.09 KB
/
Copy pathwindows.yml
File metadata and controls
29 lines (29 loc) · 1.09 KB
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
name: Windows Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
windows_wheel:
continue-on-error: true
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install choco packages
run: |
choco install 7zip python
choco install --allow-downgrade wget --version 1.20.3.20190531
- name: Get snap7
run: |
wget.exe -O snap7-full-1.4.2.7z --content-disposition -c https://sourceforge.net/projects/snap7/files/1.4.2/snap7-full-1.4.2.7z/download
7z x snap7-full-1.4.2.7z
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: Upgrade pip and wheel for all pythons
run: python.exe -m pip install --upgrade pip wheel
- name: Install python libraries
run: python.exe -m pip install .[test]
- name: Run tests
run: pytest.exe test/test_client.py test/test_util.py test/test_partner.py test/test_mainloop.py