From 52e4f0298ab09cff025b3ed131bae9a38396a117 Mon Sep 17 00:00:00 2001 From: Muhammad Farhan Date: Wed, 9 Oct 2024 22:48:40 +0500 Subject: [PATCH] fix: update github workflows --- .github/workflows/check-consistent-dependencies.yml | 2 +- .github/workflows/ci-static-analysis.yml | 4 ++-- .github/workflows/compile-python-requirements.yml | 2 +- .github/workflows/js-tests.yml | 3 +-- .github/workflows/lint-imports.yml | 2 +- .github/workflows/migrations-check.yml | 3 +-- .github/workflows/pylint-checks.yml | 2 +- .github/workflows/quality-checks.yml | 3 +-- .github/workflows/semgrep.yml | 3 +-- .github/workflows/static-assets-check.yml | 3 +-- .github/workflows/unit-tests.yml | 8 +++----- .github/workflows/upgrade-one-python-dependency.yml | 2 +- 12 files changed, 15 insertions(+), 22 deletions(-) diff --git a/.github/workflows/check-consistent-dependencies.yml b/.github/workflows/check-consistent-dependencies.yml index 048cbe6b006b..df8006ad0918 100644 --- a/.github/workflows/check-consistent-dependencies.yml +++ b/.github/workflows/check-consistent-dependencies.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-python@v5 if: ${{ env.RELEVANT == 'true' }} with: - python-version: '3.11' + python-version: '3.12' - name: "Recompile requirements" if: ${{ env.RELEVANT == 'true' }} diff --git a/.github/workflows/ci-static-analysis.yml b/.github/workflows/ci-static-analysis.yml index a3b0527aad72..99a738c2eceb 100644 --- a/.github/workflows/ci-static-analysis.yml +++ b/.github/workflows/ci-static-analysis.yml @@ -8,8 +8,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: - - "3.11" + python-version: ["3.11", "3.12"] + os: ["ubuntu-latest"] steps: diff --git a/.github/workflows/compile-python-requirements.yml b/.github/workflows/compile-python-requirements.yml index 21cb80083f1d..1bf6ef74fa94 100644 --- a/.github/workflows/compile-python-requirements.yml +++ b/.github/workflows/compile-python-requirements.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python environment uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Run make compile-requirements env: diff --git a/.github/workflows/js-tests.yml b/.github/workflows/js-tests.yml index c9d2d7ab1191..a96b433e51f6 100644 --- a/.github/workflows/js-tests.yml +++ b/.github/workflows/js-tests.yml @@ -14,8 +14,7 @@ jobs: matrix: os: [ubuntu-latest] node-version: [18, 20] - python-version: - - "3.11" + python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/lint-imports.yml b/.github/workflows/lint-imports.yml index e3c59ec09304..55a9affa8d91 100644 --- a/.github/workflows/lint-imports.yml +++ b/.github/workflows/lint-imports.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install system requirements run: sudo apt update && sudo apt install -y libxmlsec1-dev diff --git a/.github/workflows/migrations-check.yml b/.github/workflows/migrations-check.yml index f253d48e4f41..08fed9fd95fe 100644 --- a/.github/workflows/migrations-check.yml +++ b/.github/workflows/migrations-check.yml @@ -14,8 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: - - "3.11" + python-version: ["3.11", "3.12"] # 'pinned' is used to install the latest patch version of Django # within the global constraint i.e. Django==4.2.8 in current case # because we have global constraint of Django<4.2 diff --git a/.github/workflows/pylint-checks.yml b/.github/workflows/pylint-checks.yml index 332603e1d302..38325f89e03e 100644 --- a/.github/workflows/pylint-checks.yml +++ b/.github/workflows/pylint-checks.yml @@ -39,7 +39,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.11 + python-version: 3.12 - name: Get pip cache dir id: pip-cache-dir diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 5445d70e3b4b..3cece2b5909a 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -14,8 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: - - "3.11" + python-version: ["3.11", "3.12"] node-version: [20] steps: diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index d880d7351766..662821bcbcb6 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -18,8 +18,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest"] - python-version: - - "3.11" + python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/static-assets-check.yml b/.github/workflows/static-assets-check.yml index 0a417f9b1c79..25a7219dcce4 100644 --- a/.github/workflows/static-assets-check.yml +++ b/.github/workflows/static-assets-check.yml @@ -13,8 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: - - "3.11" + python-version: ["3.11", "3.12"] node-version: [18, 20] npm-version: [10.5.x] mongo-version: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5fef1c8352ce..d808990726c6 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -18,8 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: - - "3.11" + python-version: ["3.11", "3.12"] django-version: - "pinned" # When updating the shards, remember to make the same changes in @@ -170,7 +169,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: 3.11 + python-version: 3.12 - name: install system requirements run: | @@ -292,8 +291,7 @@ jobs: needs: [run-tests] strategy: matrix: - python-version: - - 3.11 + python-version: ["3.11", "3.12"] steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/.github/workflows/upgrade-one-python-dependency.yml b/.github/workflows/upgrade-one-python-dependency.yml index 84a00266e99f..98d42bde60bc 100644 --- a/.github/workflows/upgrade-one-python-dependency.yml +++ b/.github/workflows/upgrade-one-python-dependency.yml @@ -39,7 +39,7 @@ jobs: - name: Set up Python environment uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Update any pinned dependencies env: