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

upgrade ci #22

Merged
merged 9 commits into from
Feb 15, 2025
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
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates once a week
interval: "weekly"
groups:
actions:
patterns:
- "*"
5 changes: 5 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
exclude:
authors:
- dependabot
- pre-commit-ci
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
if: |
github.repository == 'xarray-contrib/xarray-array-testing'
&& (github.event_name == 'push' || github.event_name == 'pull_request')
&& !contains(github.event.pull_request.labels.*.name, 'skip-ci')
outputs:
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
steps:
Expand All @@ -36,6 +37,7 @@ jobs:
runs-on: ${{ matrix.os }}
needs: detect-ci-trigger
if: needs.detect-ci-trigger.outputs.triggered == 'false'

env:
FORCE_COLOR: 3
CONDA_ENV_FILE: "ci/requirements/environment.yaml"
Expand All @@ -47,7 +49,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.11", "3.12"]
python-version: ["3.11", "3.13"]

steps:
- uses: actions/checkout@v4
Expand All @@ -63,7 +65,6 @@ jobs:
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
create-args: >-
python=${{matrix.python-version}}
conda

- name: Install nightly xarray
run: |
Expand All @@ -73,23 +74,22 @@ jobs:
run: |
python -m pip install --no-deps -e .

- name: Version info
run: |
conda info -a
conda list

- name: Import xarray-array-testing
run: |
python -c 'import xarray_array_testing'

- name: Restore cached hypothesis directory
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: .hypothesis/
key: cache-hypothesis
enableCrossOsArchive: true
save-always: true

- name: Run tests
run: |
python -m pytest --cov=xarray_array_testing

- name: Cache hypothesis directory
uses: actions/cache/save@v4
with:
path: .hypothesis/
key: cache-hypothesis
Loading