Files
finanz-cockpit/.gitea/workflows/test.yml
T
mathias2784 d2f47a7787
Tests / test (push) Successful in 9s
Tests / lint (push) Successful in 11s
mypy in pipeline
2026-10-10 17:48:20 +01:00

43 lines
1.1 KiB
YAML

name: Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install uv
run: pip install uv
- name: Install dependencies
run: uv sync --frozen
- name: Copy default settings
run: cp settings.template.py settings.py
- name: Run pytest
run: uv run pytest
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install uv
run: pip install uv
- name: Install dependencies
run: uv sync --frozen
- name: Copy default settings
run: cp settings.template.py settings.py
- name: Check formatting (black)
run: uv run black --check . --extend-exclude .venv
- name: Lint (ruff)
run: uv run ruff check .
- name: Typing (mypy)
run: uv run mypy .