Repository navigation
67 lines (61 loc) · 1.66 KB
/
Copy pathci.yml
File metadata and controls
67 lines (61 loc) · 1.66 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
name: CI
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Quality (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
env:
PYTHONWARNINGS: error::ResourceWarning
steps:
- name: Check out source
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install project
run: python -m pip install -e ".[dev]"
- name: Lint
run: make lint
- name: Run tests with branch coverage
env:
INVERTERSCOUT_DATA_DIR: ${{ runner.temp }}/inverterscout-test-data
run: make test-cov
- name: Build Python package
run: python -m pip wheel . --no-deps --wheel-dir dist
container:
needs: quality
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out source
uses: actions/checkout@v7
- name: Validate Compose configuration
run: docker compose config --quiet
- name: Build container
run: docker compose build
windows-launcher:
runs-on: windows-latest
timeout-minutes: 5
steps:
- name: Check out source
uses: actions/checkout@v7
- name: Run native Windows launcher checks
shell: cmd
run: start.bat --self-test
- name: Verify launcher help
shell: cmd
run: start.bat --help