Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #790

Merged
merged 6 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,36 @@ updates:
labels:
- "dependencies"
# Add reviewers:
reviewers:
- "glatterf42"
- "khaeru"
- package-ecosystem: "github-actions"
# Only update major versions
ignore:
- dependency-name: "*"
update-types:
- "version-update:semver-minor"
- "version-update:semver-patch"
# Below config mirrors the example at
# https://github.com/dependabot/dependabot-core/blob/main/.github/dependabot.yml
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "16:00"
groups:
all-actions:
patterns: [ "*" ]
# Add assignees
assignees:
- "glatterf42"
- "khaeru"
# Specify labels
labels:
- "dependencies"
# Add reviewers:
reviewers:
- "glatterf42"
- "khaeru"


2 changes: 1 addition & 1 deletion .github/workflows/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Cache Anaconda installer, conda packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
$CONDA/pkgs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: python -m pip install --upgrade pip setuptools-scm wheel

- name: Cache GAMS installer and Python packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: gams
key: ubuntu-latest-gams${{ env.GAMS_VERSION }}
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ jobs:
cache: pip
cache-dependency-path: "**/pyproject.toml"

- uses: ts-graphviz/setup-graphviz@v1.2.0
- uses: ts-graphviz/setup-graphviz@v2
with:
macos-skip-brew-update: true

- name: Cache GAMS installer and R packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
gams
Expand All @@ -85,8 +85,6 @@ jobs:
run: |
pip install --upgrade "ixmp @ git+https://github.com/iiasa/ixmp.git@main"
pip install .[tests]
# TEMPORARY work around iiasa/message_ix#788
pip install "genno<1.23"

- name: Run test suite using pytest
env:
Expand All @@ -101,7 +99,9 @@ jobs:
shell: bash

- name: Upload test coverage to Codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tutorials:
strategy:
Expand Down Expand Up @@ -130,18 +130,20 @@ jobs:

- name: Set RETICULATE_PYTHON
# Use the environment variable set by the setup-python action, above.
run: echo "RETICULATE_PYTHON=$pythonLocation" >> $GITHUB_ENV
run: echo "RETICULATE_PYTHON=$pythonLocation" >> "$GITHUB_ENV"
shell: bash

- uses: ts-graphviz/setup-graphviz@v1.2.0
- uses: ts-graphviz/setup-graphviz@v2
with:
macos-skip-brew-update: true

- uses: r-lib/actions/setup-r@v2
id: setup-r
with:
windows-path-include-rtools: false

- name: Cache GAMS installer and R packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
gams
Expand Down Expand Up @@ -185,7 +187,9 @@ jobs:
shell: bash

- name: Upload test coverage to Codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # required

pre-commit:
name: Code quality
Expand Down
Loading