-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.29 KB
/
Copy pathci.yml
File metadata and controls
45 lines (42 loc) · 1.29 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:
pull_request:
push:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install --upgrade pip
- run: python -m pip install -e .
- run: python -m unittest discover -s tests -v
- run: python scripts/generate_fixtures.py --check
- run: python scripts/render_results.py --check
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install --upgrade pip
- run: python -m pip install -e . "ruff>=0.8,<1" "mypy>=1.13,<2" "mkdocs>=1.6,<2"
- run: ruff check .
- run: ruff format --check .
- run: mypy src tests scripts
- run: mkdocs build --strict
- run: python scripts/check_chapter_contract.py
- run: python scripts/check_source_register.py
- run: python scripts/check_markdown_links.py
- run: python scripts/prepublication_scan.py
- run: python scripts/check_history.py
- run: python scripts/check_license_manifest.py