-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1.11 KB
/
Copy pathci.yml
File metadata and controls
41 lines (34 loc) · 1.11 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
name: CI
# Fast, self-contained checks: unit tests, data validators, and an offline scoring
# smoke test. No secrets and no network access are required.
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r bot/requirements.txt
- name: Run unit tests
run: PYTHONPATH=. python -m pytest bot/tests -q
- name: Validate data (results · referees · team stats)
run: |
PYTHONPATH=. python scripts/validate_results.py
PYTHONPATH=. python scripts/validate_referee_stats.py
PYTHONPATH=. python scripts/validate_team_stats.py
- name: Offline scoring smoke test (no API key)
run: PYTHONPATH=. python -m bot run --offline --date 2026-06-11