-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (47 loc) 路 1.24 KB
/
Copy pathci.yml
File metadata and controls
50 lines (47 loc) 路 1.24 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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
package:
uses: ./.github/workflows/package.yml
ci:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Install just
uses: extractions/setup-just@v3
with:
just-version: 1.41.0
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --locked --no-default-groups --group dev --group notebooks
- name: Run checks
run: |
UV_NO_SYNC=1 just checks
- name: Run tests
run: |
UV_NO_SYNC=1 just tests
- name: Upload coverage reports to Codecov
if: matrix.python-version == '3.11'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
fail_ci_if_error: true
- name: Upload test results to Codecov
if: ${{ matrix.python-version == '3.11' && !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true