fimfarchive/.github/workflows/main.yml

43 lines
759 B
YAML
Raw Normal View History

2021-01-08 21:20:21 +01:00
name: Main
on:
- pull_request
- push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
2022-09-25 13:56:43 +02:00
- '3.9'
- '3.10'
2022-12-18 18:41:23 +01:00
- '3.11'
2023-10-18 14:30:02 +02:00
- '3.12'
2021-01-08 21:20:21 +01:00
steps:
2024-09-18 18:17:32 +02:00
- name: Clone repository
2024-05-15 12:59:47 +02:00
uses: actions/checkout@v4
2021-01-08 21:20:21 +01:00
2024-09-18 18:17:32 +02:00
- name: Use Python ${{ matrix.python-version }}
2024-05-15 12:59:47 +02:00
uses: actions/setup-python@v5
2021-01-08 21:20:21 +01:00
with:
python-version: ${{ matrix.python-version }}
2024-09-18 18:17:32 +02:00
- name: Configure uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
- name: Sync dependencies
run: uv sync --all-extras --dev
- name: Check styling
2024-09-25 16:53:55 +02:00
run: uv run ruff check
2024-09-18 18:17:32 +02:00
- name: Check types
run: uv run mypy
2021-01-08 21:20:21 +01:00
2024-09-18 18:17:32 +02:00
- name: Run tests
run: uv run pytest