LeoWalker commited on
Commit
89b6b17
·
1 Parent(s): b1c981b

Run uv quality checks in CI

Browse files
Files changed (1) hide show
  1. .github/workflows/ci.yml +43 -0
.github/workflows/ci.yml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+
9
+ concurrency:
10
+ group: ci-${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ quality:
18
+ name: Quality
19
+ runs-on: ubuntu-latest
20
+ timeout-minutes: 10
21
+
22
+ steps:
23
+ - name: Check out repository
24
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25
+
26
+ - name: Install uv and Python
27
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
28
+ with:
29
+ version: "0.10.2"
30
+ python-version: "3.11"
31
+ enable-cache: true
32
+
33
+ - name: Sync locked dependencies
34
+ run: uv sync --frozen --extra dev
35
+
36
+ - name: Lint
37
+ run: uv run --frozen ruff check .
38
+
39
+ - name: Check formatting
40
+ run: uv run --frozen ruff format --check .
41
+
42
+ - name: Test
43
+ run: uv run --frozen pytest