Skip to content

Commit

Permalink
ci: enable custom env. vars in pkg check
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Oct 15, 2024
1 parent 9111a56 commit 985fef5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/check-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ on:
"os": ["ubuntu-20.04", "macos-11", "windows-2022"],
"python-version": ["3.8", "3.9"]
}
env-vars:
description: "custom environment variables in json format"
required: false
type: string
default: |
{
"SPHINX_MOCK_REQUIREMENTS": 0,
}
defaults:
run:
Expand All @@ -73,6 +81,7 @@ jobs:
pkg-build:
needs: init-store
runs-on: ${{ matrix.os }}
env: ${{ fromJSON(inputs.env-vars) }}
strategy:
max-parallel: 1 # run sequential to prevent download/upload collisions
fail-fast: false
Expand Down Expand Up @@ -104,6 +113,7 @@ jobs:
pkg-check:
needs: pkg-build
runs-on: ${{ matrix.os }}
env: ${{ fromJSON(inputs.env-vars) }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(inputs.testing-matrix) }}
Expand Down

0 comments on commit 985fef5

Please sign in to comment.