@@ -1,9 +1,10 @@
|
|||||||
|
---
|
||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test_and_lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -15,25 +16,8 @@ jobs:
|
|||||||
run: pip install uv
|
run: pip install uv
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: uv sync --frozen
|
run: uv sync --frozen
|
||||||
- name: Copy default settings
|
|
||||||
run: cp settings.template.py settings.py
|
|
||||||
- name: Run pytest
|
- name: Run pytest
|
||||||
run: uv 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)
|
- name: Check formatting (black)
|
||||||
run: uv run black --check . --extend-exclude .venv
|
run: uv run black --check . --extend-exclude .venv
|
||||||
- name: Lint (ruff)
|
- name: Lint (ruff)
|
||||||
Reference in New Issue
Block a user