Repository navigation
57 lines (57 loc) · 1.49 KB
/
Copy pathci.yml
File metadata and controls
57 lines (57 loc) · 1.49 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
name: CI Checks
on:
pull_request:
push:
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v5
env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "15"
with:
path: |
~/.cache/pip
key: pip-${{ runner.os }}-${{ runner.arch }}-py-${{ matrix.python-version }}
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
- name: Cache uv
uses: actions/cache@v5
env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "15"
with:
path: |
~/.cache/pip
~/.cache/uv
key: uv-${{ runner.os }}-${{ runner.arch }}-py-${{ matrix.python-version }}-uv-${{ hashFiles('uv.lock') }}
- name: Install dependencies
run: |
uv sync --refresh
uv cache prune --ci
echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Install task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run lint task
run: task lint
- name: Run test task
run: task test