From 9fec43ddf12118f6bfa66aedb17bca91618f153b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 19 Apr 2024 21:41:49 +0200 Subject: [PATCH] Move calculate-job-matrix.py to `ci/github-actions` --- .github/workflows/ci.yml | 2 +- src/ci/{scripts => github-actions}/calculate-job-matrix.py | 2 +- src/ci/github-actions/ci.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/ci/{scripts => github-actions}/calculate-job-matrix.py (84%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90269f56c52..e01eec949a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: - name: Checkout the source code uses: actions/checkout@v4 - name: Calculate the CI job matrix - run: python3 src/ci/scripts/calculate-job-matrix.py >> $GITHUB_OUTPUT + run: python3 src/ci/github-actions/calculate-job-matrix.py >> $GITHUB_OUTPUT id: jobs pr: name: "PR - ${{ matrix.name }}" diff --git a/src/ci/scripts/calculate-job-matrix.py b/src/ci/github-actions/calculate-job-matrix.py similarity index 84% rename from src/ci/scripts/calculate-job-matrix.py rename to src/ci/github-actions/calculate-job-matrix.py index 9b1e74c23c3..ba40f4da847 100755 --- a/src/ci/scripts/calculate-job-matrix.py +++ b/src/ci/github-actions/calculate-job-matrix.py @@ -15,7 +15,7 @@ from pathlib import Path import yaml -JOBS_YAML_PATH = Path(__file__).absolute().parent.parent / "github-actions" / "jobs.yml" +JOBS_YAML_PATH = Path(__file__).absolute().parent / "jobs.yml" if __name__ == "__main__": diff --git a/src/ci/github-actions/ci.yml b/src/ci/github-actions/ci.yml index de71b9f874f..9d1c3284be2 100644 --- a/src/ci/github-actions/ci.yml +++ b/src/ci/github-actions/ci.yml @@ -351,7 +351,7 @@ jobs: - name: Checkout the source code uses: actions/checkout@v4 - name: Calculate the CI job matrix - run: python3 src/ci/scripts/calculate-job-matrix.py >> $GITHUB_OUTPUT + run: python3 src/ci/github-actions/calculate-job-matrix.py >> $GITHUB_OUTPUT id: jobs pr: <<: *base-ci-job