-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.22 KB
/
main.yaml
File metadata and controls
55 lines (43 loc) · 1.22 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
# Built from:
# https://docs.github.com/en/actions/guides/building-and-testing-python
---
name: Build and test
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
env:
FORCE_COLOR: "1" # Make tools pretty.
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
fail-fast: false
steps:
# https://github.com/actions/checkout
- name: Check out repository
uses: actions/checkout@v4.2.2
with:
persist-credentials: false
# https://github.com/astral-sh/setup-uv
- name: Install uv
uses: astral-sh/setup-uv@v6.4.3
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"
# https://github.com/actions/setup-python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install just
run: |
uv tool install rust-just
- name: Install project
run: uv sync --dev
- name: Run test suite
run: just test