Skip to content

Commit

Permalink
Merge pull request #854 from iiasa/ci/numpy-2
Browse files Browse the repository at this point in the history
Adjust CI for Numpy 2.0, Graphviz
  • Loading branch information
khaeru authored Jun 17, 2024
2 parents 1125579 + c9df55e commit fa21aa2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ jobs:
(cd ixmp; pip install .[tests])
(cd message_ix; pip install .[tests])
# TEMPORARY Work around unionai-oss/pandera#1685;
# see https://github.com/khaeru/genno/issues/140
pip install "numpy < 2"
- name: Run test suite using pytest
env:
MESSAGE_IX_CI_USER: ${{ secrets.ENE_DATA_USER }}
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
cache-dependency-path: "**/pyproject.toml"

- uses: ts-graphviz/setup-graphviz@v2
with:
macos-skip-brew-update: true
# TEMPORARY Work around ts-graphviz/setup-graphviz#630
if: ${{ ! startswith(matrix.os, 'macos-') }}

- name: Cache GAMS installer and R packages
uses: actions/cache@v4
Expand All @@ -86,6 +86,10 @@ jobs:
pip install --upgrade "ixmp @ git+https://github.com/iiasa/ixmp.git@main"
pip install .[tests]
# TEMPORARY Work around unionai-oss/pandera#1685;
# see https://github.com/khaeru/genno/issues/140
pip install "numpy < 2"
- name: Run test suite using pytest
env:
# For test_cli.test_dl; see code in message_ix.cli.dl
Expand Down Expand Up @@ -134,8 +138,8 @@ jobs:
shell: bash

- uses: ts-graphviz/setup-graphviz@v2
with:
macos-skip-brew-update: true
# TEMPORARY Work around ts-graphviz/setup-graphviz#630
if: ${{ ! startswith(matrix.os, 'macos-') }}

- uses: r-lib/actions/setup-r@v2
id: setup-r
Expand Down Expand Up @@ -166,6 +170,10 @@ jobs:
pip install --upgrade "ixmp @ git+https://github.com/iiasa/ixmp.git@main"
pip install .[tests]
# TEMPORARY Work around unionai-oss/pandera#1685;
# see https://github.com/khaeru/genno/issues/140
pip install "numpy < 2"
- name: Install R dependencies and tutorial requirements
run: |
install.packages("remotes")
Expand Down

0 comments on commit fa21aa2

Please sign in to comment.