Skip to content

Commit

Permalink
Validate CI env vars (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 authored Nov 22, 2024
1 parent 8c4f995 commit 84469b0
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pytest-snapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ concurrency:
cancel-in-progress: true

env:
version:
gams: "43.4.1"
python: "3.12"
upstream: main
gams: "43.4.1"
python: "3.12"
upstream: main

jobs:
snapshots:
Expand All @@ -38,13 +37,13 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: ${{ env.version.python }}
python-version: ${{ env.python }}
cache: pip
cache-dependency-path: "**/pyproject.toml"

- uses: iiasa/actions/setup-gams@main
with:
version: ${{ env.version.gams }}
version: ${{ env.gams }}
license: ${{ secrets.GAMS_LICENSE }}

- uses: ts-graphviz/setup-graphviz@v2
Expand All @@ -53,16 +52,16 @@ jobs:

- name: Install packages and dependencies
# By default, install:
# - ixmp, message_ix: from GitHub branches/tags per env.version.upstream (above)
# - ixmp, message_ix: from GitHub branches/tags per env.upstream (above)
# - other dependencies including genno: from PyPI.
#
# To test against unreleased code (on `main`, or other branches
# for open PRs), temporarily uncomment, add, or edit lines below
# as needed. DO NOT merge such changes to `main`.
run: |
# pip install --upgrade "genno @ git+https://github.com/khaeru/genno.git@main"
pip install --upgrade "ixmp @ git+https://github.com/iiasa/ixmp.git@${{ env.version.upstream }}"
# pip install --upgrade "message-ix @ git+https://github.com/iiasa/message_ix.git@${{ env.version.upstream }}"
pip install --upgrade "ixmp @ git+https://github.com/iiasa/ixmp.git@${{ env.upstream }}"
# pip install --upgrade "message-ix @ git+https://github.com/iiasa/message_ix.git@${{ env.upstream }}"
pip install --upgrade "message-ix @ git+https://github.com/iiasa/message_ix.git@issue/723"
pip install .[docs,tests] dask[dataframe]
Expand Down

0 comments on commit 84469b0

Please sign in to comment.