diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7289d28..b0f34e8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,8 +1,13 @@ name: CI on: push: + branches: + - main pull_request: - workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: lint: @@ -22,6 +27,23 @@ jobs: source .venv/bin/activate ruff format --check + - name: Lint + run: | + source .venv/bin/activate + ruff check + + - name: Checkout pyright diff plugin + uses: https://github.com/actions/checkout@v5 + with: + repository: mx/diff_quality_basedpyright + path: diff_quality_basedpyright + + - name: Typecheck Diff + run: | + source .venv/bin/activate + uv pip install -e diff_quality_basedpyright + diff-quality --violations=basedpyright --fail-under=100 + test: runs-on: ubuntu-latest needs: "lint"