From aca6a7c70a85e9373822f6e538d3fdc2ac3265ca Mon Sep 17 00:00:00 2001 From: merlerm Date: Wed, 7 Oct 2026 14:32:17 +0200 Subject: [PATCH 1/3] Run CI on pull requests so fork PRs get checks --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 248a73ee..6d7cb1c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ name: CI Checks -on: [push] +on: [push, pull_request] jobs: autoformat: From c58c414d31fd011ecaaf2ae09aa47a32d101a215 Mon Sep 17 00:00:00 2001 From: merlerm Date: Wed, 7 Oct 2026 14:35:53 +0200 Subject: [PATCH 2/3] Skip pull_request CI jobs for PRs from branches in this repo --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d7cb1c3..0ac35619 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,11 @@ name: CI Checks +# Branches in this repo get CI on push; pull_request runs only for fork PRs. on: [push, pull_request] jobs: autoformat: + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -17,6 +19,7 @@ jobs: with: configuration: "--skip third-party --skip .venv --skip outputs --check-only" linting: + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest strategy: matrix: @@ -42,6 +45,7 @@ jobs: run: | uv run pytest . --pylint -m pylint --pylint-rcfile=.pylintrc --ignore=third-party --ignore=outputs static-type-checking: + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest strategy: matrix: @@ -63,6 +67,7 @@ jobs: run: | uv run mypy . --exclude third-party --exclude outputs unit-tests: + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest strategy: matrix: From a3dcca82f712e99148d33ca83bf47f3b9ca107e7 Mon Sep 17 00:00:00 2001 From: merlerm Date: Wed, 7 Oct 2026 14:41:47 +0200 Subject: [PATCH 3/3] Run push CI only on main and allow manual runs --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ac35619..075bf23d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,13 @@ name: CI Checks -# Branches in this repo get CI on push; pull_request runs only for fork PRs. -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: + workflow_dispatch: jobs: autoformat: - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -19,7 +21,6 @@ jobs: with: configuration: "--skip third-party --skip .venv --skip outputs --check-only" linting: - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest strategy: matrix: @@ -45,7 +46,6 @@ jobs: run: | uv run pytest . --pylint -m pylint --pylint-rcfile=.pylintrc --ignore=third-party --ignore=outputs static-type-checking: - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest strategy: matrix: @@ -67,7 +67,6 @@ jobs: run: | uv run mypy . --exclude third-party --exclude outputs unit-tests: - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest strategy: matrix: