-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (55 loc) · 1.43 KB
/
Copy pathci.yml
File metadata and controls
59 lines (55 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
name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: ubuntu-latest
env:
UV_PYTHON: ${{ matrix.python }}
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
python: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python }}
- uses: astral-sh/setup-uv@v10.2.0
with:
version: "0.11.8"
enable-cache: true
cache-dependency-glob: uv.lock
- run: uv sync --all-extras --all-groups --locked --python "${{ matrix.python }}"
- run: make verify
- name: Upload coverage to Codecov
if: matrix.python == '3.11'
uses: codecov/codecov-action@v7
with:
files: coverage.xml
fail_ci_if_error: true
flags: unit
name: python-3.11-unit
use_oidc: true
- name: Upload coverage report
if: matrix.python == '3.11'
uses: actions/upload-artifact@v7
with:
name: inflow-python-coverage
path: |
coverage.xml
coverage.json
if-no-files-found: error
retention-days: 7