Files
025-us-states-game/.gitea/workflows/run-tests.yml
T
Tirsvad 22f19c188b Add repository baseline: layout, tooling, assets, README, Doxyfile and CI (MIL-001)
Task: MIL-001#1
Task: MIL-001#2
Task: MIL-001#3
Task: MIL-001#4
Task: MIL-001#5
Task: MIL-001#6
2026-10-13 15:46:00 +08:00

36 lines
1.0 KiB
YAML

# Continuous integration for the U.S. States Game.
# Read by Gitea Actions. Installs the project with its dev extra, then checks
# style (ruff), types (mypy) and behaviour (pytest). Design: docs/project-plan.md.
---
name: Run tests
on:
push:
branches: [main]
pull_request:
jobs:
run-tests:
name: Lint, type check and test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out the project
uses: actions/checkout@v4.2.2
- name: Set up Python
uses: actions/setup-python@v5.3.0
with:
python-version: "3.13"
- name: Install the project and its dev tools
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Check style
run: python -m ruff check . && python -m ruff format --check .
- name: Check types
run: python -m mypy
- name: Check workflow files
run: python -m yamllint .gitea .yamllint
- name: Run the tests
run: python -m pytest