-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 966 Bytes
/
code_checks.yml
File metadata and controls
45 lines (37 loc) · 966 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
43
44
45
name: Code checks
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v4
# Set up Python 3.13 (matches .python-version)
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
# Install uv for dependency management
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
# Install project dependencies with uv
- name: Install dependencies
run: |
uv sync --frozen
# Run linting (using Makefile's lint target)
- name: Lint code
run: |
make lint
# Run tests (using Makefile's test target)
- name: Run tests
run: |
make test