From 2c2f981150eedd02c3c4bea7366e79c5fa5fd315 Mon Sep 17 00:00:00 2001 From: Michael Rapp Date: Sun, 7 Jul 2024 16:39:08 +0200 Subject: [PATCH] Use Github action "actions/setup-python". --- .github/workflows/test_build.yml | 12 ++++++++++++ .github/workflows/test_doc.yml | 4 ++++ .github/workflows/test_format.yml | 4 ++++ 3 files changed, 20 insertions(+) diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml index 32b8e66386..e68d24f542 100644 --- a/.github/workflows/test_build.yml +++ b/.github/workflows/test_build.yml @@ -78,6 +78,10 @@ jobs: test-build-cache-git - name: Checkout uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '>=3.9' - name: Install OpenCL run: | sudo apt update @@ -126,6 +130,10 @@ jobs: test-build-cache-git - name: Checkout uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '>=3.9' - name: Install OpenMP run: brew install libomp - name: Install OpenCL @@ -155,6 +163,10 @@ jobs: test-build-cache-git - name: Checkout uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '>=3.9' - name: Prepare MSVC uses: ilammy/msvc-dev-cmd@v1 - name: Install OpenCL diff --git a/.github/workflows/test_doc.yml b/.github/workflows/test_doc.yml index f46ce17a92..c7f0a7b767 100644 --- a/.github/workflows/test_doc.yml +++ b/.github/workflows/test_doc.yml @@ -69,6 +69,10 @@ jobs: test-doc-cache-git - name: Checkout uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '>=3.9' - name: Prepare ccache uses: hendrikmuhs/ccache-action@v1 with: diff --git a/.github/workflows/test_format.yml b/.github/workflows/test_format.yml index b80271ae20..209c7082d0 100644 --- a/.github/workflows/test_format.yml +++ b/.github/workflows/test_format.yml @@ -20,6 +20,10 @@ jobs: test-format-cache-git - name: Checkout uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '>=3.9' - name: Detect changes uses: dorny/paths-filter@v3 id: filter