Added CI/CD file for Forgejo
This commit is contained in:
parent
cd84e90583
commit
7492aa34fb
1 changed files with 36 additions and 0 deletions
36
.forgejo/workflows/check.yaml
Normal file
36
.forgejo/workflows/check.yaml
Normal 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
|
Loading…
Add table
Reference in a new issue