From 7cefa31d245f38aa8a3d73d76530d66ba3452deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 3 Oct 2024 16:10:49 +0200 Subject: [PATCH] CI updates This is done by the automated script named upgrade-c2cciutils-to-1.7 --- .github/renovate.json5 | 12 ++++++++++++ .github/workflows/clean.yaml | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index c77155987..ec9b45c83 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -35,6 +35,13 @@ ], datasourceTemplate: 'github-tags', }, + /** Python version in actions/setup-python action */ + { + fileMatch: ['^\\.github/workflows/.*\\.yaml$'], + matchStrings: [' python-version: [\'"](?[0-9\\.]+)[\'"]'], + datasourceTemplate: 'python-version', + depNameTemplate: 'python', + }, ], packageRules: [ /** Docker images versioning */ @@ -171,5 +178,10 @@ groupName: 'geotools', separateMultipleMinor: true, }, + /** Ungroup Python dependencies */ + { + matchDepNames: ['python'], + groupName: 'Python', + }, ], } diff --git a/.github/workflows/clean.yaml b/.github/workflows/clean.yaml index d6badbe7f..c04601acf 100644 --- a/.github/workflows/clean.yaml +++ b/.github/workflows/clean.yaml @@ -20,8 +20,10 @@ 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: Clean Docker hub tags run: c2cciutils-clean