diff --git a/.github/workflows/python-pull-request.yml b/.github/workflows/python-pull-request.yml index c99266f..e361d59 100644 --- a/.github/workflows/python-pull-request.yml +++ b/.github/workflows/python-pull-request.yml @@ -20,23 +20,18 @@ jobs: skip-hooks: "no-commit-to-branch" checks: - if: | - !( - (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && - matrix.install-mode == 'local-changes' - ) # Skip scheduled runs with only local-changes - - runs-on: ${{ matrix.platform }} - timeout-minutes: 60 strategy: fail-fast: false matrix: platform: ["ubuntu-latest", "macos-latest"] python-version: ["3.9", "3.10", "3.11"] - install-mode: ["all", "local-changes"] + install-mode: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && fromJSON('["all"]') || fromJSON('["local-changes", "all"]') }} - steps: + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 + + steps: - uses: actions/checkout@v3 with: fetch-depth: 0