Skip to content

Commit 7da47f0

Browse files
author
Zach Price
committed
feat: Build and publish Helm chart in CI
1 parent 5f54643 commit 7da47f0

32 files changed

+1158
-462
lines changed

.github/actions/build-container/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ runs:
2626
cache-to: type=gha,mode=max
2727
context: .
2828
file: ${{ inputs.dockerfile }}
29-
push: ${{ ! github.event.pull_request.head.repo.fork }}
29+
push: true
3030
sbom: true
3131
tags: ${{ steps.metadata.outputs.tags }}
3232
labels: ${{ steps.metadata.outputs.labels }}
3333
- name: Attest to REF image
3434
uses: actions/attest-build-provenance@v2
35-
if: ${{ ! github.event.pull_request.head.repo.fork }}
3635
with:
3736
subject-name: ghcr.io/${{ github.repository_owner }}/${{ inputs.container-name }}
3837
subject-digest: ${{ steps.push.outputs.digest }}

.github/workflows/bump.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
jobs:
2121
bump_version:
2222
name: "Bump version and create changelog"
23-
if: "!startsWith(github.event.head_commit.message, 'bump:')"
23+
if: ! startsWith(github.event.head_commit.message, 'bump:')
2424
runs-on: ubuntu-latest
2525
env:
2626
CI_COMMIT_EMAIL: "[email protected]"
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
name: Integration tests
1+
# name: Integration tests
22

3-
on:
4-
# Allow manual triggering of this workflow
5-
workflow_dispatch:
6-
# Run on each push to main and tagged version
7-
push:
8-
branches: [main]
9-
tags: ['v*']
10-
# Runs every day at 2:15am (UTC) (~ midday in AEST)
11-
schedule:
12-
- cron: '2 15 * * *'
3+
# on:
4+
# # Allow manual triggering of this workflow
5+
# workflow_dispatch:
6+
# # Run on each push to main and tagged version
7+
# push:
8+
# branches: [main]
9+
# tags: ['v*']
10+
# # Runs every day at 2:15am (UTC) (~ midday in AEST)
11+
# schedule:
12+
# - cron: '2 15 * * *'
1313

14-
jobs:
15-
tests-slow:
16-
if: github.repository == 'Climate-REF/climate-ref'
17-
env:
18-
REF_TEST_OUTPUT: "test-outputs"
19-
PYTEST_ADDOPTS: "--slow"
20-
strategy:
21-
fail-fast: false
22-
matrix:
23-
python-version: [ "3.11", "3.13" ]
24-
runs-on: "self-hosted"
25-
defaults:
26-
run:
27-
shell: bash
28-
steps:
29-
- name: Check out repository
30-
uses: actions/checkout@v4
31-
- uses: ./.github/actions/setup
32-
with:
33-
python-version: ${{ matrix.python-version }}
34-
- name: Run tests
35-
run: |
36-
make virtual-environment
37-
make fetch-test-data
38-
uv run ref datasets fetch-data --registry ilamb --symlink
39-
uv run ref datasets fetch-data --registry iomb --symlink
40-
uv run ref datasets fetch-data --registry esmvaltool --symlink
41-
uv run ref providers create-env
42-
uv run pytest packages tests --slow --no-docker -r a -v
43-
# Upload the scratch and executions directories as artifacts
44-
- name: Upload scratch artifacts
45-
uses: actions/upload-artifact@v4
46-
if: always()
47-
with:
48-
name: integration-output-${{ matrix.python-version }}
49-
path: ${{ env.REF_TEST_OUTPUT }}
50-
retention-days: 7
14+
# jobs:
15+
# tests-slow:
16+
# if: github.repository == 'Climate-REF/climate-ref'
17+
# env:
18+
# REF_TEST_OUTPUT: "test-outputs"
19+
# PYTEST_ADDOPTS: "--slow"
20+
# strategy:
21+
# fail-fast: false
22+
# matrix:
23+
# python-version: [ "3.11", "3.13" ]
24+
# runs-on: "self-hosted"
25+
# defaults:
26+
# run:
27+
# shell: bash
28+
# steps:
29+
# - name: Check out repository
30+
# uses: actions/checkout@v4
31+
# - uses: ./.github/actions/setup
32+
# with:
33+
# python-version: ${{ matrix.python-version }}
34+
# - name: Run tests
35+
# run: |
36+
# make virtual-environment
37+
# make fetch-test-data
38+
# uv run ref datasets fetch-data --registry ilamb --symlink
39+
# uv run ref datasets fetch-data --registry iomb --symlink
40+
# uv run ref datasets fetch-data --registry esmvaltool --symlink
41+
# uv run ref providers create-env
42+
# uv run pytest packages tests --slow --no-docker -r a -v
43+
# # Upload the scratch and executions directories as artifacts
44+
# - name: Upload scratch artifacts
45+
# uses: actions/upload-artifact@v4
46+
# if: always()
47+
# with:
48+
# name: integration-output-${{ matrix.python-version }}
49+
# path: ${{ env.REF_TEST_OUTPUT }}
50+
# retention-days: 7

0 commit comments

Comments
 (0)