-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.19 KB
/
run_lint_test.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
47
48
49
50
51
52
53
name: Ruff, Mypy and Pytest
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13.1"]
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.26"
enable-cache: true
cache-dependency-glob: |
pyproject.toml
- name: Install the project
run: |
uv sync --python ${{ matrix.python-version }}
- name: Build docs
run: |
. .venv/bin/activate
make -C docs/ html
continue-on-error: true
- name: Ruff
run: |
uv run ruff check --output-format github --config pyproject.toml --fix
continue-on-error: true
- name: Mypy
run: |
uv run mypy --config-file pyproject.toml src tests
continue-on-error: true
- name: Test with pytest
run: |
uv run pytest tests
continue-on-error: true