-
Notifications
You must be signed in to change notification settings - Fork 95
55 lines (44 loc) · 1.21 KB
/
test.yml
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
name: Run unit tests
on:
push:
pull_request:
branches:
- master
schedule:
# Every sunday at 8:05 UTC
- cron: "5 8 * * 0"
# If you trigger a new workflow while the previous one is running,
# this will cancel the previous one.
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
# Use matrix strategy to run the tests on multiple Py versions on multiple OSs.
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install the Dependencies
run: |
echo "Installing the dependencies..."
uv sync
- name: Check Linter
run: |
echo "Checking linter formatting..."
make lint-check
- name: Run Tests
run: |
echo "Running the tests..."
make test