Skip to content

Commit

Permalink
Use iiasa/actions to set up GAMS
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Apr 1, 2021
1 parent d0b3a77 commit 9058605
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
branches: [ main ]

env:
GAMS_VERSION: 25.1.1
# For setuptools-scm. With fetch --tags below, this ensures that enough
# history is fetched to contain the latest tag, so that setuptools-scm can
# generate the version number. Update:
Expand Down Expand Up @@ -91,20 +90,10 @@ jobs:
${{ matrix.os }}-gams${{ env.GAMS_VERSION }}-
${{ matrix.os }}-
- name: Install GAMS
# Use the scripts from the checked-out ixmp repo
env:
CI_OS: ${{ matrix.os }}
run: ixmp/ci/install-gams.sh
shell: bash

- name: Install GAMS license
env:
GAMS_LICENSE: ${ secrets.GAMS_LICENSE }
run: |
echo "$GAMS_LICENSE" > $(dirname $(which gams))/gamslice.txt
gams
shell: bash
- uses: iiasa/actions/setup-gams@main
with:
version: 25.1.1
license: ${{ secrets.GAMS_LICENSE }}

- name: Upgrade pip, wheel, setuptools-scm
run: python -m pip install --upgrade pip wheel setuptools-scm
Expand Down

0 comments on commit 9058605

Please sign in to comment.