Skip to content

Commit eee24e4

Browse files
authored
Simplify ci: run on develop, and on sundays. And disable downstream-ci-hpc. And test only python 3.11. And test only once when PR are updated. And shortest name to read the full description on github.ci. And test with only ubuntu. (same change as for anemoi-utils ecmwf/anemoi-utils#42) (#129)
1 parent 10063ea commit eee24e4

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/ci.yml

+15-8
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,20 @@ jobs:
4242
with:
4343
anemoi-datasets: ecmwf/anemoi-datasets@${{ github.event.pull_request.head.sha || github.sha }}
4444
codecov_upload: true
45+
skip_matrix_jobs: |
46+
gnu@debian-11
47+
48+
gnu@debian-11
49+
50+
51+
gnu@fedora-37
4552
secrets: inherit
4653

47-
# Build downstream packages on HPC
48-
downstream-ci-hpc:
49-
name: downstream-ci-hpc
50-
if: ${{ !contains(github.repository, 'private') && (!github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci') }}
51-
uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main
52-
with:
53-
anemoi-datasets: ecmwf/anemoi-datasets@${{ github.event.pull_request.head.sha || github.sha }}
54-
secrets: inherit
54+
# # Build downstream packages on HPC
55+
# downstream-ci-hpc:
56+
# name: downstream-ci-hpc
57+
# if: ${{ !contains(github.repository, 'private') && (!github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci') }}
58+
# uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main
59+
# with:
60+
# anemoi-datasets: ecmwf/anemoi-datasets@${{ github.event.pull_request.head.sha || github.sha }}
61+
# secrets: inherit
+8-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# This workflow will upload a Python Package using Twine when a release is created
22
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

4-
name: Code Quality checks for PRs
4+
name: Test PR
55

66
on:
7-
push:
87
pull_request:
98
types: [opened, synchronize, reopened]
9+
push:
10+
branches:
11+
- develop
12+
schedule:
13+
- cron: "9 2 * * 0" # at 9:02 on sunday
14+
1015

1116
jobs:
1217
quality:
@@ -17,7 +22,7 @@ jobs:
1722
checks:
1823
strategy:
1924
matrix:
20-
python-version: ["3.9", "3.10", "3.11", "3.12"]
25+
python-version: ["3.11"]
2126
uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2
2227
with:
2328
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)