-
-
Notifications
You must be signed in to change notification settings - Fork 620
37 lines (29 loc) · 758 Bytes
/
code-quality.yml
File metadata and controls
37 lines (29 loc) · 758 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
name: code-quality
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Download datasets
run: uv run make download-datasets
- name: Run tests
run: uv run pytest
- name: Install pre-commit
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit/
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: uv run pre-commit run --all-files