From 88ebe7ca852cfab26614c3754e8527394be82a39 Mon Sep 17 00:00:00 2001 From: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:51:45 -0700 Subject: [PATCH] Run github actions on all pushes / PRs (#222) * run github actions on all pushes / prs * only run pull-request github actions from other repos --- .github/workflows/lint_and_test.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index e1b62527f..cbb69e7be 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -3,16 +3,11 @@ name: lint and test -on: - push: - branches: - - main - pull_request: - branches: - - main +on: [push, pull_request] jobs: ruff-black-isort: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -27,6 +22,7 @@ jobs: run: isort --profile black --check . build: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name runs-on: ${{ matrix.os }} strategy: @@ -62,6 +58,7 @@ jobs: pytest license-check: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name runs-on: ubuntu-latest steps: