Skip to content

Commit

Permalink
try from JSON solution
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperDramsch committed Jan 15, 2025
1 parent c90639c commit cb95ea6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/python-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb95ea6

Please sign in to comment.