-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.35 KB
/
python.yml
File metadata and controls
63 lines (50 loc) · 1.35 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
name: Python CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: python-ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
jobs:
test:
runs-on: windows-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install package + dev deps
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Ruff (lint)
run: |
ruff check src tests
- name: Mypy (types)
run: |
mypy src/producer_os
- name: GUI spec-lock (structure)
run: |
pytest -q tests/test_gui_spec_lock.py
- name: Pytest
run: |
pytest -q --disable-warnings
- name: Build (sdist + wheel)
run: |
python -m pip install --upgrade build
python -m build --sdist --wheel