Skip to content

Commit 2076183

Browse files
authored
CI: use ubuntu-slim runners (#745)
* CI: use ubuntu-slim runners * backends on ubuntu-latest * latest for py311
1 parent aacc9db commit 2076183

3 files changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
jobs:
2121
dist:
2222
name: Create dist
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-slim
2424
steps:
2525
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626
with:
@@ -37,7 +37,7 @@ jobs:
3737
id-token: write # for trusted publishing
3838
attestations: write # for trusted publishing
3939
contents: read
40-
runs-on: ubuntu-latest
40+
runs-on: ubuntu-slim
4141
if: github.event_name == 'release' && github.event.action == 'published'
4242

4343
steps:

.github/workflows/ci.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
jobs:
2323
lint:
2424
name: Lint
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-slim
2626
steps:
2727
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2828
with:
@@ -44,14 +44,19 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
environment:
48-
- tests-py311
49-
- tests-py314
50-
- tests-numpy1
51-
- tests-backends
52-
- tests-backends-py311
53-
- tests-nogil
54-
runs-on: [ubuntu-latest]
47+
include:
48+
- environment: tests-py311
49+
runs-on: ubuntu-latest
50+
- environment: tests-py314
51+
runs-on: ubuntu-slim
52+
- environment: tests-numpy1
53+
runs-on: ubuntu-slim
54+
- environment: tests-nogil
55+
runs-on: ubuntu-slim
56+
- environment: tests-backends
57+
runs-on: ubuntu-latest
58+
- environment: tests-backends-py311
59+
runs-on: ubuntu-latest
5560

5661
environment:
5762
name: ci-checks

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
jobs:
1212
docs-build:
1313
name: Build
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-slim
1515

1616
permissions:
1717
contents: read
@@ -40,7 +40,7 @@ jobs:
4040
name: Deploy
4141
if: ${{ github.event.workflow_run.event == 'push' }}
4242
needs: docs-build
43-
runs-on: ubuntu-latest
43+
runs-on: ubuntu-slim
4444

4545
permissions:
4646
contents: write # needed for the deploy step

0 commit comments

Comments
 (0)