Repository navigation
61 lines (46 loc) · 1.43 KB
/
Copy pathci.yml
File metadata and controls
61 lines (46 loc) · 1.43 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: pipx install poetry==2.4.3
- name: Install dev environment
run: |
poetry env use python${{ matrix.python-version }}
poetry install
- name: Lint
run: poetry run ruff check .
- name: Format
run: poetry run ruff format --check .
- name: Type check
run: poetry run mypy
- name: Test
run: poetry run scripts/test.sh -q
- name: Parity with v0.1
run: poetry run python tools/parity/check.py
build:
# The packages as they would be published: built, checked, installed together and smoke-tested.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install Poetry
run: pipx install poetry==2.4.3
- name: Build, inspect and smoke-test the distributions
run: python scripts/check_dist.py --out build-check
- name: Check the package metadata renders on PyPI
run: pipx run twine check build-check/*/*.whl build-check/*/*.tar.gz