From 531abb7926ad7035fa76f1553c5e5e11b8e0a6f0 Mon Sep 17 00:00:00 2001 From: lbluque Date: Tue, 26 Sep 2023 21:10:50 -0700 Subject: [PATCH] revert back to old check and skip run if PR merge --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a7fcc0a..6b485538 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,7 @@ on: jobs: test: + if: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !contains( github.event.head_commit.message, 'Merge pull request')) }} # Only 20.04 is known to work with scip 8.0.0 runs-on: ubuntu-20.04 strategy: @@ -56,7 +57,7 @@ jobs: pytest tests --cov=smol --cov-report=xml - uses: actions/checkout@v4 - - if: ${{ matrix.python_version == '3.11' && (github.event_name == 'pull_request' || (github.event_name == 'push' && !contains( github.event.head_commit.message, 'Merge pull request'))) }} + - if: matrix.python_version == '3.11' && github.event_name == 'push' name: codacy-coverage-reporter uses: codacy/codacy-coverage-reporter-action@v1 with: