-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (34 loc) · 992 Bytes
/
code-quality.yml
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
name: CI
on:
push:
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
DEFAULT_UV: "0.3.0"
jobs:
check-quality:
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/${{ env.DEFAULT_UV }}/install.sh | sh
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Create venv and install
run: uv sync --all-extras --dev
- name: Check formatting
run: uv run ruff format --check
- name: Ruff lint/sort/etc checking
run: uv run ruff check --no-fix
- name: Run pylint
run: uv run pylint elkm1_lib
- name: Check typing
run: uv run mypy --show-error-codes --strict elkm1_lib
- name: Run pytest
run: uv run pytest test