-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1009 Bytes
/
pr.yaml
File metadata and controls
47 lines (36 loc) · 1009 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
46
47
name: PR validation
on: [pull_request]
jobs:
lint:
strategy:
matrix:
python-version: ["3.12"]
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
pyproject-file: "pyproject.toml"
- name: Set up Python
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Check dependencies
run: |
uv lock --check
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4.7.0
with:
python-version: "3.12"
cache: "poetry"
cache-dependency-path: "poetry.lock"
- name: Install Python dependencies
run: uv sync
- name: Run code linters
run: |
uv run ruff check discobuilder
uv run ruff format --check discobuilder