From fdb6c422045d2815e7ab1dd2e592e638489cd39d Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Mon, 13 Oct 2025 15:29:52 +0200 Subject: [PATCH] feat: add new workflows --- .gitea/workflows/test_build.yml | 32 ++++++++++++++++++++++++++++++++ .gitea/workflows/typecheck.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .gitea/workflows/test_build.yml create mode 100644 .gitea/workflows/typecheck.yml diff --git a/.gitea/workflows/test_build.yml b/.gitea/workflows/test_build.yml new file mode 100644 index 0000000..1ff5a6b --- /dev/null +++ b/.gitea/workflows/test_build.yml @@ -0,0 +1,32 @@ +on: + pull_request: + types: + - synchronize + - reopened + - edited + +jobs: + test-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@master + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + python-version-file: "pyproject.toml" + + - name: Set up Python + run: uv python install + + - name: Install the project dependencies + run: | + uv sync --all-groups + + - name: Build package + run: uv build + + - name: Run tests + run: uv run pytest diff --git a/.gitea/workflows/typecheck.yml b/.gitea/workflows/typecheck.yml new file mode 100644 index 0000000..22c87c5 --- /dev/null +++ b/.gitea/workflows/typecheck.yml @@ -0,0 +1,27 @@ +on: + pull_request: + types: + - opened + +jobs: + typecheck: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@master + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + python-version-file: "pyproject.toml" + + - name: Set up Python + run: uv python install + + - name: Install the project dependencies + run: | + uv sync --all-groups + + - name: Run mypy + run: uv run mypy src/