-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (41 loc) · 1.15 KB
/
ci.yml
File metadata and controls
45 lines (41 loc) · 1.15 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
name: CI
on:
push:
pull_request:
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install quality tooling
run: python -m pip install ruff mypy pip-audit
- name: Ruff
run: python -m ruff check src tests
- name: Mypy
run: PYTHONPATH=src python -m mypy src
- name: Pip Audit
run: python -m pip_audit
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Compile
run: python -m py_compile run_stopliga.py src/stopliga/*.py tests/*.py
- name: Unit and integration tests
run: PYTHONPATH=src python -m unittest tests.test_config tests.test_feed tests.test_integration -v
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Build image
run: docker build -t stopliga .