Repository navigation
47 lines (47 loc) · 1.62 KB
/
Copy pathtest.yml
File metadata and controls
47 lines (47 loc) · 1.62 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
42
43
44
45
46
47
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:
include:
- {python-version: "3.10", os: ubuntu-24.04}
- {python-version: "3.11", os: ubuntu-24.04}
- {python-version: "3.12", os: ubuntu-24.04}
- {python-version: "3.13", os: ubuntu-24.04}
- {python-version: "3.14", os: ubuntu-22.04}
- {python-version: "3.14", os: ubuntu-24.04}
- {python-version: "3.14", os: ubuntu-26.04}
- {python-version: "3.14", os: macos-14}
- {python-version: "3.14", os: macos-15}
- {python-version: "3.14", os: windows-2022}
- {python-version: "3.14", os: windows-2025}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install dependencies
run: uv sync --extra test --python python${{ matrix.python-version }}
- name: Run pytest
if: matrix.python-version != '3.14' || matrix.os != 'ubuntu-24.04'
run: uv run pytest
- name: Run pytest with coverage
if: matrix.python-version == '3.14' && matrix.os == 'ubuntu-24.04'
run: uv run pytest --cov=snap7 --cov-report=term