From de89761922975cb434d3984e0c20abfe17f3dd45 Mon Sep 17 00:00:00 2001 From: Aziz Berkay Yesilyurt Date: Mon, 10 Jun 2024 10:49:23 +0200 Subject: [PATCH] ci: fix setup-python action by pinning python to 3.12.3 https://github.com/actions/setup-python/issues/886 --- .github/workflows/cd-docs.yml | 2 +- .github/workflows/cd-post-release-tests.yml | 6 +++--- .github/workflows/cd-syft-dev.yml | 2 +- .github/workflows/cd-syft.yml | 8 ++++---- .github/workflows/cd-syftcli.yml | 4 ++-- .github/workflows/container-scan.yml | 2 +- .github/workflows/e2e-tests-notebook.yml | 2 +- .github/workflows/post-merge-tasks.yml | 2 +- .github/workflows/pr-tests-frontend.yml | 2 +- .github/workflows/pr-tests-linting.yml | 2 +- .github/workflows/pr-tests-stack.yml | 8 ++++---- .github/workflows/pr-tests-syft.yml | 10 +++++----- 12 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/cd-docs.yml b/.github/workflows/cd-docs.yml index ff042e74017..ede04d8e153 100644 --- a/.github/workflows/cd-docs.yml +++ b/.github/workflows/cd-docs.yml @@ -16,7 +16,7 @@ jobs: cd-docs: strategy: matrix: - python-version: ["3.12"] + python-version: ["3.12.3"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/cd-post-release-tests.yml b/.github/workflows/cd-post-release-tests.yml index 370469ea0bb..35d251a6ff2 100644 --- a/.github/workflows/cd-post-release-tests.yml +++ b/.github/workflows/cd-post-release-tests.yml @@ -35,7 +35,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest, macos-latest, windows-latest, macos-14] - python-version: ["3.12", "3.11", "3.10"] + python-version: ["3.12.3", "3.11", "3.10"] runs-on: ${{ matrix.os }} steps: - name: System Architecture @@ -89,7 +89,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] runs-on: ${{ matrix.os }} steps: @@ -146,7 +146,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest, macos-latest] - python-version: ["3.12", "3.11", "3.10"] + python-version: ["3.12.3", "3.11", "3.10"] runs-on: ${{ matrix.os }} steps: - name: System Architecture diff --git a/.github/workflows/cd-syft-dev.yml b/.github/workflows/cd-syft-dev.yml index 0231f97e172..88fe711764d 100644 --- a/.github/workflows/cd-syft-dev.yml +++ b/.github/workflows/cd-syft-dev.yml @@ -64,7 +64,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.12.3" - name: Set up Docker Buildx id: buildx diff --git a/.github/workflows/cd-syft.yml b/.github/workflows/cd-syft.yml index 486196ecbdb..a51e1e3b8ed 100644 --- a/.github/workflows/cd-syft.yml +++ b/.github/workflows/cd-syft.yml @@ -40,7 +40,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.12.3" # The steps ensure that the cron job is able to run only for # for beta releases and not for stable releases @@ -100,7 +100,7 @@ jobs: if: ${{ !endsWith(matrix.runner, '-arm64') }} uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.12.3" # Currently psutil package requires gcc to be installed on arm # for building psutil from source @@ -118,7 +118,7 @@ jobs: if: ${{ endsWith(matrix.runner, '-arm64') }} uses: deadsnakes/action@v3.1.0 with: - python-version: "3.12" + python-version: "3.12.3" - name: Install Git run: | @@ -382,7 +382,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.12.3" - name: Install dependencies run: | pip install --upgrade pip uv==0.1.35 tox tox-uv==1.5.1 setuptools wheel twine bump2version PyYAML diff --git a/.github/workflows/cd-syftcli.yml b/.github/workflows/cd-syftcli.yml index 65f2c37662e..52a098569bf 100644 --- a/.github/workflows/cd-syftcli.yml +++ b/.github/workflows/cd-syftcli.yml @@ -60,7 +60,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.12.3" - name: Install dependencies if: ${{steps.get-hashes.outputs.current_hash != steps.get-hashes.outputs.previous_hash }} @@ -117,7 +117,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.12.3" - name: Install build dependencies for syftcli run: | diff --git a/.github/workflows/container-scan.yml b/.github/workflows/container-scan.yml index 303eb11bc40..a6ddcb032ac 100644 --- a/.github/workflows/container-scan.yml +++ b/.github/workflows/container-scan.yml @@ -189,7 +189,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.12.3" #Generate SBOM - name: Generate SBOM diff --git a/.github/workflows/e2e-tests-notebook.yml b/.github/workflows/e2e-tests-notebook.yml index 10c3eb84e2d..500e731e788 100644 --- a/.github/workflows/e2e-tests-notebook.yml +++ b/.github/workflows/e2e-tests-notebook.yml @@ -45,7 +45,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/post-merge-tasks.yml b/.github/workflows/post-merge-tasks.yml index eefed62f8a3..30f9fe83b32 100644 --- a/.github/workflows/post-merge-tasks.yml +++ b/.github/workflows/post-merge-tasks.yml @@ -12,7 +12,7 @@ jobs: post-merge-cleanup-notebooks: strategy: matrix: - python-version: ["3.12"] + python-version: ["3.12.3"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pr-tests-frontend.yml b/.github/workflows/pr-tests-frontend.yml index bf36991a385..3663f976a8c 100644 --- a/.github/workflows/pr-tests-frontend.yml +++ b/.github/workflows/pr-tests-frontend.yml @@ -23,7 +23,7 @@ jobs: max-parallel: 3 matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] runs-on: ubuntu-20.04 # ${{ matrix.os }} steps: diff --git a/.github/workflows/pr-tests-linting.yml b/.github/workflows/pr-tests-linting.yml index fdb90728c2a..786b94e9edd 100644 --- a/.github/workflows/pr-tests-linting.yml +++ b/.github/workflows/pr-tests-linting.yml @@ -17,7 +17,7 @@ jobs: strategy: max-parallel: 1 matrix: - python-version: ["3.12"] + python-version: ["3.12.3"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pr-tests-stack.yml b/.github/workflows/pr-tests-stack.yml index 34620e3fa80..24b42718f71 100644 --- a/.github/workflows/pr-tests-stack.yml +++ b/.github/workflows/pr-tests-stack.yml @@ -27,7 +27,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] fail-fast: false runs-on: ${{matrix.os}} @@ -87,7 +87,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] pytest-modules: ["local_node"] fail-fast: false @@ -152,7 +152,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] pytest-modules: ["frontend network container_workload"] fail-fast: false @@ -306,7 +306,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] fail-fast: false runs-on: ${{matrix.os}} diff --git a/.github/workflows/pr-tests-syft.yml b/.github/workflows/pr-tests-syft.yml index 046dea143e0..a6ef5b6b4f0 100644 --- a/.github/workflows/pr-tests-syft.yml +++ b/.github/workflows/pr-tests-syft.yml @@ -25,7 +25,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] include: - python-version: "3.11" os: "ubuntu-latest" @@ -108,7 +108,7 @@ jobs: # Disable on windows until its flakyness is reduced. # os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] deployment-type: ["python"] notebook-paths: ["tutorials"] bump-version: ["False"] @@ -121,7 +121,7 @@ jobs: os: "ubuntu-latest" deployment-type: "python" notebook-paths: "tutorials" - - python-version: "3.12" + - python-version: "3.12.3" os: "ubuntu-latest" deployment-type: "python" notebook-paths: "tutorials" @@ -201,7 +201,7 @@ jobs: max-parallel: 99 matrix: os: [ubuntu-latest] - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12.3"] deployment-type: ["remote"] notebook-paths: ["api/0.8"] fail-fast: false @@ -317,7 +317,7 @@ jobs: max-parallel: 1 matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.12.3"] runs-on: ${{ matrix.os }} steps: