Skip to content

Commit

Permalink
Parametrize GAMS version in "pytest" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Jul 8, 2024
1 parent 6dc9e3c commit a27b559
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,25 @@ jobs:
- "3.10"
- "3.11"
- "3.12" # Latest supported by ixmp
gams-version:
# First version including a macOS arm64 distribution
- 43.4.1

# commented: force a specific version of pandas, for e.g. pre-release
# testing
# pandas-version:
# - ""
# - "==2.0.0rc0"

exclude: [ ]
# # Specific version combinations that are invalid, e.g. pandas 2.0
# # requires Python >= 3.8
# - python-version: "3.7"
# pandas-version: "==2.0.0rc0"
exclude:
# Specific version combinations that are invalid
# No arm64 distribution for this version of GAMS
- { os: macos-latest, gams-version: 25.1.1}
# No arm64 distributions of JPype for these Pythons
- { os: macos-latest, python-version: "3.8" }
- { os: macos-latest, python-version: "3.9" }
# Example: pandas 2.0 requires Python >= 3.8
# - { python-version: "3.7", pandas-version: "==2.0.0rc0" }

fail-fast: false

Expand Down Expand Up @@ -81,7 +88,7 @@ jobs:
- uses: iiasa/actions/setup-gams@main
with:
version: 25.1.1
version: ${{ matrix.gams-version }}

- name: Set RETICULATE_PYTHON
# Use the environment variable set by the setup-python action, above.
Expand Down

0 comments on commit a27b559

Please sign in to comment.