Skip to content

Commit

Permalink
Pin runner images to specific versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Parnassius committed Jan 18, 2025
1 parent 175b05e commit ec02ad7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
18 changes: 15 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
extends: [
'config:best-practices',
'config:semverAllMonthly',
"config:best-practices",
"config:semverAllMonthly",
],
additionalBranchPrefix: "{{datasource}}-",
customManagers: [
{
customType: "regex",
datasourceTemplate: "github-runners",
depTypeTemplate: "github-runner",
versioningTemplate: "docker",
fileMatch: ["^\\.github/workflows/.+\\.ya?ml$"],
matchStrings: [
"[\"']?(?<depName>[^\\s]+?)-(?<currentValue>[^\\s]+?)[\"']?\\s+# renovate: github-runner",
],
},
],
additionalBranchPrefix: '{{categories}}-',
}
21 changes: 12 additions & 9 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install uv
Expand All @@ -19,10 +19,13 @@ jobs:
run: make lint

test:
runs-on: ${{ matrix.os }}-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu, macos, windows]
os:
- ubuntu-24.04 # renovate: github-runner
- macos-14 # renovate: github-runner
- windows-2022 # renovate: github-runner
python-version:
- "3.9"
- "3.10"
Expand Down Expand Up @@ -55,7 +58,7 @@ jobs:
include-hidden-files: true

coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: test
outputs:
percentage: ${{ steps.percentage.outputs.percentage }}
Expand All @@ -81,7 +84,7 @@ jobs:
run: coverage report --fail-under=100

coverage-badge:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: coverage
if: github.event_name == 'push' && github.ref_name == 'main'
permissions:
Expand Down Expand Up @@ -122,7 +125,7 @@ jobs:
git commit -am "Update coverage" && git push || true
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install uv
Expand All @@ -139,7 +142,7 @@ jobs:
if-no-files-found: error

pypi-publish:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- lint
- test
Expand All @@ -159,7 +162,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1

lint-spec-parser:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
defaults:
run:
working-directory: spec_parser
Expand All @@ -177,7 +180,7 @@ jobs:
run: make lint

dummy-required-job:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- lint
- test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-elements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
update:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install uv
Expand Down

0 comments on commit ec02ad7

Please sign in to comment.