From 097e50cecf566fd694334907741fb6ff05741b2f Mon Sep 17 00:00:00 2001 From: Philippe MILINK Date: Wed, 25 Sep 2024 21:55:39 +0200 Subject: [PATCH 1/2] Utilise ubuntu-24.04 comme runner pour la CI --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63ef139def..5be4140b98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: # Lint all source files by executing pre-commit hooks. lint: name: Lint - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 # do not execute scheduled jobs on forks: if: ${{ github.event_name != 'schedule' || github.repository_owner == 'zestedesavoir' }} @@ -44,7 +44,7 @@ jobs: # Build the documentation and upload it as an artifact. build-doc: name: Build Sphinx documentation - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 # do not execute scheduled jobs on forks: if: ${{ github.event_name != 'schedule' || github.repository_owner == 'zestedesavoir' }} @@ -87,7 +87,7 @@ jobs: # Build the website front-end and upload built assets as an artifact. build-front: name: Lint and build front-end - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 # do not execute scheduled jobs on forks: if: ${{ github.event_name != 'schedule' || github.repository_owner == 'zestedesavoir' }} @@ -137,7 +137,7 @@ jobs: test: name: Install and test zds-site needs: build-front - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: @@ -246,7 +246,7 @@ jobs: coverage: name: Push coverage to Coveralls needs: test - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Set up Python ${{ env.PYTHON_VERSION }} @@ -266,7 +266,7 @@ jobs: push_doc: name: Push documentation to GitHub Pages needs: ["build-doc", "test"] - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 if: "github.ref == 'refs/heads/dev'" environment: From 0d9bc4373652055309d26ba970262eb5fb5bc198 Mon Sep 17 00:00:00 2001 From: Philippe MILINK Date: Wed, 25 Sep 2024 22:03:59 +0200 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20d=C3=A9finit=20la=20version=20de=20Py?= =?UTF-8?q?thon=20avant=20de=20mettre=20=C3=A0=20jour=20pip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5be4140b98..51a718d274 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -182,6 +182,11 @@ jobs: name: assets path: dist + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: "${{ env.PYTHON_VERSION }}" + - name: Upgrade pip run: | pip install --upgrade pip @@ -206,11 +211,6 @@ jobs: restore-keys: | ${{ runner.os }}-node- - - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v5 - with: - python-version: "${{ env.PYTHON_VERSION }}" - - name: Set up NodeJS ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: