From 7492aa34fb32036edfafe48315f84548afd75be8 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Wed, 2 Apr 2025 10:21:26 +0200 Subject: [PATCH] Added CI/CD file for Forgejo --- .forgejo/workflows/check.yaml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .forgejo/workflows/check.yaml diff --git a/.forgejo/workflows/check.yaml b/.forgejo/workflows/check.yaml new file mode 100644 index 0000000..1861e3d --- /dev/null +++ b/.forgejo/workflows/check.yaml @@ -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