-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.32 KB
/
Copy pathtests.yml
File metadata and controls
44 lines (40 loc) · 1.32 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
name: tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: python -m pip install --upgrade pip && python -m pip install ".[dev]"
- name: Test
run: pytest -q
- name: Reproduce every published figure
run: python scripts/reproduce.py
- name: Check the paper's figures against live computation
run: python scripts/check_paper.py
data-integrity:
# The shipped tables must still match their upstream sources. This is the
# check that would have caught the standards mix-up earlier: it fails loudly
# if the transcriptions drift rather than silently grading against stale data.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install
run: python -m pip install --upgrade pip && python -m pip install .
- name: Verify 2021 tables against upstream
run: python scripts/gen_data.py --check