-
Notifications
You must be signed in to change notification settings - Fork 461
42 lines (35 loc) · 889 Bytes
/
linting.yml
File metadata and controls
42 lines (35 loc) · 889 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
name: Linting
on:
push:
branches: [main, 5.0, 4.2, 3.4]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint-tests:
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --frozen
- name: ruff
run: |
python --version
uv run ruff --version
uv run ruff check src qa tests --output-format=full --statistics