From a2f282854e296c85b3f87e85d32cd62ff88b94df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 2 Oct 2024 12:09:45 +0200 Subject: [PATCH] Fix project workflow for new Ubuntu version --- .../.github/workflows/main.yaml | 11 ++++++----- .../.github/workflows/rebuild.yaml | 8 ++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/.github/workflows/main.yaml b/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/.github/workflows/main.yaml index a9c63163ca..061eba67e2 100644 --- a/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/.github/workflows/main.yaml +++ b/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/.github/workflows/main.yaml @@ -26,8 +26,12 @@ jobs: # patterns: docker # if: env.HAS_SECRETS == 'HAS_SECRETS' - - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} - - run: python3 -m pip install --user --requirement=ci/requirements.txt + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - run: python3 -m pip install --requirement=ci/requirements.txt + - name: Environment information + run: c2cciutils-env - uses: actions/cache@v4 with: @@ -48,9 +52,6 @@ jobs: # - run: make secrets # - run: cat env.secrets |grep '^[# A-Z0-9_]\+='|sed -e 's/^[# A-Z0-9_]\+=\(.*\)/::add-mask::\1/g' - - name: Environment information - run: c2cciutils-env - # - name: Initialize the acceptance tests # run: make acceptance-init # - run: c2cciutils-docker-logs diff --git a/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/.github/workflows/rebuild.yaml b/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/.github/workflows/rebuild.yaml index 8a1b921406..1cd48719ec 100644 --- a/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/.github/workflows/rebuild.yaml +++ b/geoportal/c2cgeoportal_geoportal/scaffolds/create/{{cookiecutter.project}}/.github/workflows/rebuild.yaml @@ -36,8 +36,12 @@ jobs: github-gopass-ci-token: ${{'{{'}} secrets.GOPASS_CI_GITHUB_TOKEN }} patterns: docker - - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} - - run: python3 -m pip install --user --requirement=ci/requirements.txt + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - run: python3 -m pip install --requirement=ci/requirements.txt + - name: Environment information + run: c2cciutils-env - name: Build run: ./build