-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (35 loc) · 1011 Bytes
/
Copy pathpython.yml
File metadata and controls
42 lines (35 loc) · 1011 Bytes
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
name: Lint and Test
on: [push, pull_request]
jobs:
# lint:
# name: Lint with Ruff
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v7
# - name: Set up uv
# uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990
# with:
# enable-cache: true
# python-version: "3.12"
# - name: Lint
# run: |
# uv run --group dev make lint
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
uv run --extra test make test