Skip to content

Commit

Permalink
updated python-versions and os-versions to use a default var
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Oct 22, 2024
1 parent 6a8bc86 commit eefe6db
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 35 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/dailies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_GIN_BUCKET: ${{ secrets.S3_GIN_BUCKET }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
python-versions: '["3.9", "3.10", "3.11", "3.12"]'
os-versions: '["ubuntu-latest", "macos-latest", "macos-13", "windows-latest"]'

run-daily-dev-tests:
uses: ./.github/workflows/dev-testing.yml
Expand All @@ -30,16 +27,11 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_GIN_BUCKET: ${{ secrets.S3_GIN_BUCKET }}
with:
python-versions: '["3.9", "3.10", "3.11", "3.12"]'

run-daily-live-service-testing:
uses: ./.github/workflows/live-service-testing.yml
secrets:
DANDI_API_KEY: ${{ secrets.DANDI_API_KEY }}
with:
python-versions: '["3.9", "3.10", "3.11", "3.12"]'
os-versions: '["ubuntu-latest", "macos-latest", "macos-13", "windows-latest"]'

run-daily-neuroconv-docker-testing:
uses: ./.github/workflows/neuroconv_docker_testing.yml
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ jobs:
S3_GIN_BUCKET: ${{ secrets.S3_GIN_BUCKET }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with: # Ternary operator: condition && value_if_true || value_if_false
python-versions: ${{ github.event.pull_request.draft == true && '["3.9"]' || '["3.9", "3.10", "3.11", "3.12"]' }}
os-versions: ${{ github.event.pull_request.draft == true && '["ubuntu-latest"]' || '["ubuntu-latest", "macos-latest", "macos-13", "windows-latest"]' }}
python-versions: ${{ github.event.pull_request.draft == true && '["3.9"]' || '' }}
os-versions: ${{ github.event.pull_request.draft == true && '["ubuntu-latest"]' || '' }}

# If the conversion gallery is the only thing that changed, run doctests only
run-doctests-only:
needs: assess-file-changes
if: ${{ needs.assess-file-changes.outputs.CONVERSION_GALLERY_CHANGED == 'true' && needs.assess-file-changes.outputs.SOURCE_CHANGED != 'true' }}
uses: ./.github/workflows/doctests.yml
with: # Ternary operator: condition && value_if_true || value_if_false
python-versions: ${{ github.event.pull_request.draft == true && '["3.9"]' || '["3.9", "3.10", "3.11", "3.12"]' }}
os-versions: ${{ github.event.pull_request.draft == true && '["ubuntu-latest"]' || '["ubuntu-latest", "macos-latest", "macos-13", "windows-latest"]' }}
python-versions: ${{ github.event.pull_request.draft == true && '["3.9"]' || '' }}
os-versions: ${{ github.event.pull_request.draft == true && '["ubuntu-latest"]' || '' }}


run-live-service-tests:
Expand All @@ -60,8 +60,8 @@ jobs:
secrets:
DANDI_API_KEY: ${{ secrets.DANDI_API_KEY }}
with: # Ternary operator: condition && value_if_true || value_if_false
python-versions: ${{ github.event.pull_request.draft == true && '["3.9"]' || '["3.9", "3.10", "3.11", "3.12"]' }}
os-versions: ${{ github.event.pull_request.draft == true && '["ubuntu-latest"]' || '["ubuntu-latest", "macos-latest", "macos-13", "windows-latest"]' }}
python-versions: ${{ github.event.pull_request.draft == true && '["3.9"]' || '' }}
os-versions: ${{ github.event.pull_request.draft == true && '["ubuntu-latest"]' || '' }}


check-final-status:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
inputs:
python-versions:
description: 'List of Python versions to use in matrix, as JSON string'
required: true
required: false
type: string
default: '["3.9", "3.10", "3.11", "3.12"]'
default: ${{ vars.ALL_PYTHON_VERSIONS }}
secrets:
DANDI_API_KEY:
required: true
Expand All @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(inputs.python-versions) }}
python-version: ${{ fromJson(!inputs.python-versions && vars.ALL_PYTHON_VERSIONS || inputs.python-versions) }}
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/doctests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
inputs:
python-versions:
description: 'List of Python versions to use in matrix, as JSON string'
required: true
required: false
type: string
default: '["3.9", "3.10", "3.11", "3.12"]'
default: ${{ vars.ALL_PYTHON_VERSIONS }}
os-versions:
description: 'List of OS versions to use in matrix, as JSON string'
required: true
required: false
type: string
default: '["ubuntu-latest", "macos-latest", "windows-latest"]'
default: ${{ vars.ALL_OS_VERSIONS }}


jobs:
Expand All @@ -21,8 +21,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(inputs.python-versions) }}
os: ${{ fromJson(inputs.os-versions) }}
python-version: ${{ fromJson(!inputs.python-versions && vars.ALL_PYTHON_VERSIONS || inputs.python-versions) }}
os: ${{ fromJson(!inputs.os-versions && vars.ALL_OS_VERSIONS || inputs.os-versions) }}
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/live-service-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
inputs:
python-versions:
description: 'List of Python versions to use in matrix, as JSON string'
required: true
required: false
type: string
default: '["3.9", "3.10", "3.11", "3.12"]'
default: ${{ vars.ALL_PYTHON_VERSIONS }}
os-versions:
description: 'List of OS versions to use in matrix, as JSON string'
required: true
required: false
type: string
default: '["ubuntu-latest", "macos-latest", "windows-latest"]'
default: ${{ vars.ALL_OS_VERSIONS }}

secrets:
DANDI_API_KEY:
Expand All @@ -28,8 +28,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(inputs.python-versions) }}
os: ${{ fromJson(inputs.os-versions) }}
python-version: ${{ fromJson(!inputs.python-versions && vars.ALL_PYTHON_VERSIONS || inputs.python-versions) }}
os: ${{ fromJson(!inputs.os-versions && vars.ALL_OS_VERSIONS || inputs.os-versions) }}
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
inputs:
python-versions:
description: 'List of Python versions to use in matrix, as JSON string'
required: true
required: false
type: string
default: '["3.9", "3.10", "3.11", "3.12"]'
default: ${{ vars.ALL_PYTHON_VERSIONS }}
os-versions:
description: 'List of OS versions to use in matrix, as JSON string'
required: true
required: false
type: string
default: '["ubuntu-latest", "macos-latest", "windows-latest"]'
default: ${{ vars.ALL_OS_VERSIONS }}


secrets:
Expand All @@ -33,8 +33,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(inputs.python-versions) }}
os: ${{ fromJson(inputs.os-versions) }}
python-version: ${{ fromJson(!inputs.python-versions && vars.ALL_PYTHON_VERSIONS || inputs.python-versions) }}
os: ${{ fromJson(!inputs.os-versions && vars.ALL_OS_VERSIONS || inputs.os-versions) }}
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
Expand Down

0 comments on commit eefe6db

Please sign in to comment.