From 1433fcbad666b6e69132bbbcfb9bcdff7b622abc Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Wed, 6 Nov 2024 11:54:37 +0100 Subject: [PATCH 1/3] 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. --- .github/workflows/ci.yml | 31 +++++++++++++++++------ .github/workflows/python-pull-request.yml | 5 ++-- test | 1 + 3 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c16bfd4..b557cdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,13 +31,28 @@ jobs: with: anemoi-utils: ecmwf/anemoi-utils@${{ github.event.pull_request.head.sha || github.sha }} codecov_upload: true + skip_matrix_jobs: | + gnu@debian-11 + clang@rocky-8.6 + gnu@debian-11 + gnu@rocky-8.6 + clang@rocky-8.6 + gnu@fedora-37 secrets: inherit - # Build downstream packages on HPC - downstream-ci-hpc: - name: downstream-ci-hpc - if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} - uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main - with: - anemoi-utils: ecmwf/anemoi-utils@${{ github.event.pull_request.head.sha || github.sha }} - secrets: inherit +# # Build downstream packages on HPC +# downstream-ci-hpc: +# name: downstream-ci-hpc +# if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} +# uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci.yml@main +# with: +# anemoi-utils: ecmwf/anemoi-utils@${{ github.event.pull_request.head.sha || github.sha }} +# codecov_upload: true +# skip_matrix_jobs: | +# gnu@debian-11 +# clang@rocky-8.6 +# gnu@debian-11 +# gnu@rocky-8.6 +# clang@rocky-8.6 +# gnu@fedora-37 +# secrets: inherit diff --git a/.github/workflows/python-pull-request.yml b/.github/workflows/python-pull-request.yml index c2be6a4..f645445 100644 --- a/.github/workflows/python-pull-request.yml +++ b/.github/workflows/python-pull-request.yml @@ -1,10 +1,9 @@ # This workflow will upload a Python Package using Twine when a release is created # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries -name: Code Quality checks for PRs +name: Test PR on: - push: pull_request: types: [opened, synchronize, reopened] @@ -17,7 +16,7 @@ jobs: checks: strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.11"] uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2 with: python-version: ${{ matrix.python-version }} diff --git a/test b/test new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/test @@ -0,0 +1 @@ +test From 4466d0e36de2d2aadfc3366b7b0af42ce0434da9 Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Fri, 8 Nov 2024 14:58:42 +0100 Subject: [PATCH 2/3] add run on develop, and on sundays --- .github/workflows/python-pull-request.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/python-pull-request.yml b/.github/workflows/python-pull-request.yml index f645445..b077aa1 100644 --- a/.github/workflows/python-pull-request.yml +++ b/.github/workflows/python-pull-request.yml @@ -6,6 +6,12 @@ name: Test PR on: pull_request: types: [opened, synchronize, reopened] + push: + branches: + - develop + schedule: + - cron: "9 2 * * 0" # at 9:02 on sunday + jobs: quality: From 88a804bab850bf1991283659465977398fca7260 Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Fri, 8 Nov 2024 15:05:21 +0100 Subject: [PATCH 3/3] clean --- test | 1 - 1 file changed, 1 deletion(-) delete mode 100644 test diff --git a/test b/test deleted file mode 100644 index 9daeafb..0000000 --- a/test +++ /dev/null @@ -1 +0,0 @@ -test