-
-
Notifications
You must be signed in to change notification settings - Fork 3
71 lines (60 loc) · 1.63 KB
/
python-test.yml
File metadata and controls
71 lines (60 loc) · 1.63 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
---
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
jobs:
test:
name: 'Python CI Test'
strategy:
fail-fast: false
matrix:
os: ['ubuntu-24.04', 'macos-14', 'windows-2022']
python: ['3.12', '3.13', '3.14']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- 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