From 3d606fe5179a610792e1c057ca5d8356b5b93237 Mon Sep 17 00:00:00 2001 From: Magdalena Luz Date: Wed, 4 Oct 2023 12:09:24 +0200 Subject: [PATCH] add cscs-ci run to test reminder script trigger QA for tools and model in the same action trigger QA run on pull_request [open,reopened, synchronize] --- .github/workflows/icon4py-qa.yml | 16 ++---- .github/workflows/icon4pytools-qa.yml | 57 ------------------- .../mandatory_and_optional_test_reminder.yml | 2 +- 3 files changed, 5 insertions(+), 70 deletions(-) delete mode 100644 .github/workflows/icon4pytools-qa.yml diff --git a/.github/workflows/icon4py-qa.yml b/.github/workflows/icon4py-qa.yml index 4153ef528d..4e97149ca8 100644 --- a/.github/workflows/icon4py-qa.yml +++ b/.github/workflows/icon4py-qa.yml @@ -5,21 +5,10 @@ on: push: branches: - main - paths-ignore: - - "tools/**" pull_request: branches: - main - paths-ignore: - - "tools/**" - types: [opened, reopened, assigned, ready_for_review] - pull_request_review: - branches: - - main - paths-ignore: - - "tools/**" - types: [submitted] - + types: [opened, reopened, synchronize] jobs: pre-commit-icon4py-model: runs-on: ubuntu-latest @@ -46,6 +35,9 @@ jobs: python -m pip install --upgrade pip setuptools wheel python -m pip install -r ./requirements-dev.txt python -m pip list + - name: Run checks in icon4pytools + run: | + pre-commit run --config tools/.pre-commit-config.yaml --all-files - name: Run checks icon4py-model-common run: | pre-commit run --config model/common/.pre-commit-config.yaml --all-files diff --git a/.github/workflows/icon4pytools-qa.yml b/.github/workflows/icon4pytools-qa.yml deleted file mode 100644 index 307957cdfb..0000000000 --- a/.github/workflows/icon4pytools-qa.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: ICON4PyTools Quality Assurance - -on: - workflow_dispatch: - push: - branches: - - main - paths: - - "tools/**" - - "base-requirements*" - - ".github/workflows/icon4pytools*" - pull_request: - branches: - - main - paths: - - "tools/**" - - "base-requirements*" - - ".github/workflows/icon4pytools*" - types: [opened, reopened, assigned, ready_for_review] - pull_request_review: - branches: - - main - paths: - - "tools/**" - - "base-requirements*" - - ".github/workflows/icon4pytools*" - types: [submitted] - -jobs: - pre-commit-icon4pytools: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install boost - run: | - sudo apt-get update - sudo apt-get install libboost-all-dev - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10" - cache: 'pip' - cache-dependency-path: | - **/pyproject.toml - **/base-requirements.txt - **/base-requirements-dev.txt - **/requirements.txt - **/requirements-dev.txt - - name: Install dependencies - working-directory: tools - run: | - python -m pip install --upgrade pip setuptools wheel - python -m pip install -r ./requirements-dev.txt - python -m pip list - - name: Run checks - run: | - pre-commit run --config tools/.pre-commit-config.yaml --all-files diff --git a/.github/workflows/mandatory_and_optional_test_reminder.yml b/.github/workflows/mandatory_and_optional_test_reminder.yml index aa078fcde7..fb32495c45 100644 --- a/.github/workflows/mandatory_and_optional_test_reminder.yml +++ b/.github/workflows/mandatory_and_optional_test_reminder.yml @@ -16,7 +16,7 @@ jobs: Please make sure you run these tests via comment before you merge! - + * `cscs-ci run` * `launch jenkins spack` **Optional Tests**