|
1 | | -name: Integration tests |
| 1 | +# name: Integration tests |
2 | 2 |
|
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 * * *' |
13 | 13 |
|
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