forked from gijzelaerr/python-snap7
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.26 KB
/
test.yml
File metadata and controls
41 lines (41 loc) · 1.26 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
30
31
32
33
34
35
36
37
38
39
40
41
name: Linux, Windows OSX Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ["ubuntu-22.04", "ubuntu-24.04", "macos-14", "macos-15", "windows-2022", "windows-2025"]
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install dependencies
run: |
uv venv --python python${{ matrix.python-version }}
uv pip install ".[test]"
- name: Run pytest
run: uv run pytest --cov=snap7 --cov-report=xml --cov-report=term
- name: Upload coverage report
if: matrix.python-version == '3.13' && matrix.runs-on == 'ubuntu-24.04'
uses: actions/upload-artifact@v7
with:
name: coverage-report
path: coverage.xml