-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 962 Bytes
/
api-style.yml
File metadata and controls
43 lines (39 loc) · 962 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
name: Check Tekst-API code style
on:
push:
branches:
- main
pull_request:
branches:
- main
# paths:
# - "Tekst-API/**"
workflow_dispatch:
jobs:
checks:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./Tekst-API
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.12"
enable-cache: true
- name: Install Python
uses: actions/setup-python@v6
with:
python-version-file: "./Tekst-API/pyproject.toml"
- name: Install dependencies
run: uv sync
- name: Cancel on setup error
if: failure()
uses: andymckay/cancel-action@0.5
- name: Lint code base
if: always()
run: uv run ruff check . --extend-select N
- name: Check code formatting
if: always()
run: uv run ruff format . --check