Repository navigation
62 lines (56 loc) · 1.65 KB
/
Copy pathpython-app.yml
File metadata and controls
62 lines (56 loc) · 1.65 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
62
name: Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: checks-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
enable-cache: true
python-version: '3.14'
- run: uv sync --locked
- run: uv run --locked ruff format --check .
- run: uv run --locked ruff check .
- run: uv run --locked mypy src
test:
name: ${{ matrix.os }} / Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.11', '3.12', '3.13', '3.14']
include:
- os: macos-latest
python: '3.14'
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
enable-cache: true
python-version: ${{ matrix.python }}
- run: uv sync --locked
- run: uv run --locked pytest -q
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
python-version: '3.11'
- run: uv build --out-dir dist/check
- name: Test installation from wheel and sdist
run: |
for artifact in dist/check/*.whl dist/check/*.tar.gz; do
uv run --no-project --isolated --with "$artifact" python scripts/smoke_install.py
done