Repository navigation
74 lines (62 loc) · 1.67 KB
/
Copy pathpython-test.yml
File metadata and controls
74 lines (62 loc) · 1.67 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
name: Python CI Test
on: # yamllint disable-line rule:truthy
push:
branches: ['main']
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
workflow_dispatch:
env:
LOG_LEVEL: INFO
permissions:
contents: read
jobs:
test:
name: 'Python CI Test'
strategy:
fail-fast: false
matrix:
os: ['ubuntu-26.04', 'macos-26', 'windows-2025']
python: ['3.13', '3.14', '3.15']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python }}
- name: Install tooling on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y pipenv
shell: bash
- name: Install tooling on macOS
if: runner.os == 'macOS'
run: |
brew install pipenv
shell: bash
- name: Install tooling on Windows
if: runner.os == 'Windows'
run: |
python -m pip install --user pipenv==2026.6.1
shell: pwsh
- name: Tooling check
run: |
python3 --version
pipenv --version
make --version
- name: Install
run: |
# Use the lockfile to install deterministic, audited dependencies
pipenv sync --dev
- name: Test
run: >
pipenv run coverage run -m pytest --verbose
-o log_cli=true
--log-cli-level=INFO
src/
- name: Coverage
run: |
pipenv run coverage report