-
Notifications
You must be signed in to change notification settings - Fork 290
42 lines (34 loc) · 1.02 KB
/
conformance.yml
File metadata and controls
42 lines (34 loc) · 1.02 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
name: Conformance
on:
push:
pull_request:
permissions:
contents: read
jobs:
conformance:
name: Run conformance suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: "pip"
- name: Install uv
run: |
python -m pip install --upgrade pip
python -m pip install uv
- name: Run conformance suite
working-directory: conformance
run: |
uv sync --python 3.12 --frozen
uv run --python 3.12 --frozen python src/main.py
- name: Assert conformance results are up to date
run: |
if [ -n "$(git status --porcelain -- conformance/results)" ]; then
git status --short conformance/results
git diff -- conformance/results
echo "Conformance results are out of date. Run conformance/src/main.py and commit updated results."
exit 1
fi