Skip to content
Open
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
3 changes: 1 addition & 2 deletions .github/actions/build-container/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ runs:
cache-to: type=gha,mode=max
context: .
file: ${{ inputs.dockerfile }}
push: ${{ ! github.event.pull_request.head.repo.fork }}
push: true
sbom: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
- name: Attest to REF image
uses: actions/attest-build-provenance@v2
if: ${{ ! github.event.pull_request.head.repo.fork }}
with:
subject-name: ghcr.io/${{ github.repository_owner }}/${{ inputs.container-name }}
subject-digest: ${{ steps.push.outputs.digest }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
jobs:
bump_version:
name: "Bump version and create changelog"
if: "!startsWith(github.event.head_commit.message, 'bump:')"
if: ! startsWith(github.event.head_commit.message, 'bump:')
runs-on: ubuntu-latest
env:
CI_COMMIT_EMAIL: "[email protected]"
Expand Down
96 changes: 48 additions & 48 deletions .github/workflows/ci-integration.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
name: Integration tests
# name: Integration tests

on:
# Allow manual triggering of this workflow
workflow_dispatch:
# Run on each push to main and tagged version
push:
branches: [main]
tags: ['v*']
# Runs every day at 2:15am (UTC) (~ midday in AEST)
schedule:
- cron: '2 15 * * *'
# on:
# # Allow manual triggering of this workflow
# workflow_dispatch:
# # Run on each push to main and tagged version
# push:
# branches: [main]
# tags: ['v*']
# # Runs every day at 2:15am (UTC) (~ midday in AEST)
# schedule:
# - cron: '2 15 * * *'

jobs:
tests-slow:
if: github.repository == 'Climate-REF/climate-ref'
env:
REF_TEST_OUTPUT: "test-outputs"
PYTEST_ADDOPTS: "--slow"
strategy:
fail-fast: false
matrix:
python-version: [ "3.11", "3.13" ]
runs-on: "self-hosted"
defaults:
run:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
make virtual-environment
make fetch-test-data
uv run ref datasets fetch-data --registry ilamb --symlink
uv run ref datasets fetch-data --registry iomb --symlink
uv run ref datasets fetch-data --registry esmvaltool --symlink
uv run ref providers create-env
uv run pytest packages tests --slow --no-docker -r a -v
# Upload the scratch and executions directories as artifacts
- name: Upload scratch artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: integration-output-${{ matrix.python-version }}
path: ${{ env.REF_TEST_OUTPUT }}
retention-days: 7
# jobs:
# tests-slow:
# if: github.repository == 'Climate-REF/climate-ref'
# env:
# REF_TEST_OUTPUT: "test-outputs"
# PYTEST_ADDOPTS: "--slow"
# strategy:
# fail-fast: false
# matrix:
# python-version: [ "3.11", "3.13" ]
# runs-on: "self-hosted"
# defaults:
# run:
# shell: bash
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
# - uses: ./.github/actions/setup
# with:
# python-version: ${{ matrix.python-version }}
# - name: Run tests
# run: |
# make virtual-environment
# make fetch-test-data
# uv run ref datasets fetch-data --registry ilamb --symlink
# uv run ref datasets fetch-data --registry iomb --symlink
# uv run ref datasets fetch-data --registry esmvaltool --symlink
# uv run ref providers create-env
# uv run pytest packages tests --slow --no-docker -r a -v
# # Upload the scratch and executions directories as artifacts
# - name: Upload scratch artifacts
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: integration-output-${{ matrix.python-version }}
# path: ${{ env.REF_TEST_OUTPUT }}
# retention-days: 7
Loading
Loading