Added CI/CD file for Forgejo
All checks were successful
Check / mypy (push) Successful in 41s
Check / ruff (push) Successful in 5s

This commit is contained in:
Christoph Stahl 2025-04-02 10:21:26 +02:00
parent cd84e90583
commit 7492aa34fb

View file

@ -0,0 +1,36 @@
name: Check
on:
push:
workflow_dispatch:
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install and poetry and all dependencies
run: |
pip install poetry --quiet
poetry install --all-extras
- name: Run mypy
run: poetry run mypy syng --strict
ruff:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install ruff
run: pip install ruff --quiet
- name: Run ruff
run: ruff check syng