Skip to content

Commit 351c45a

Browse files
authored
CI: Use ubuntu-slim in lightweight workflows (#4488)
1 parent 6ccebf9 commit 351c45a

10 files changed

Lines changed: 10 additions & 10 deletions

.github/workflows/cache_data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions: {}
3030
jobs:
3131
gmt_cache:
3232
name: Cache GMT artifacts
33-
runs-on: macos-latest
33+
runs-on: macos-slim
3434
defaults:
3535
run:
3636
shell: bash -l {0}

.github/workflows/cache_dvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ permissions: {}
2828
jobs:
2929
dvc_cache:
3030
name: Cache DVC baseline images
31-
runs-on: ubuntu-latest
31+
runs-on: ubuntu-slim
3232
defaults:
3333
run:
3434
shell: bash -l {0}

.github/workflows/check-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
jobs:
2222
check_links:
2323
name: Check Links
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-slim
2525
if: github.repository == 'GenericMappingTools/pygmt'
2626

2727
steps:

.github/workflows/dvc-diff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
jobs:
2222
dvc-diff:
2323
name: DVC image diff
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-slim
2525

2626
steps:
2727
- name: Checkout

.github/workflows/format-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
format:
1515
permissions:
1616
contents: write # for Git to git push
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-slim
1818
steps:
1919
# Generate token from GenericMappingTools bot
2020
- uses: actions/create-github-app-token@v3.0.0

.github/workflows/release-baseline-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
upload-baseline:
1616
name: Upload baseline images
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-slim
1818
if: github.repository == 'GenericMappingTools/pygmt'
1919

2020
permissions:

.github/workflows/slash-command-dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
contents: write # for executing the repository_dispatch event
1919
pull-requests: write # for peter-evans/slash-command-dispatch to create PR reaction
2020
if: ${{ github.event.issue.pull_request }}
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-slim
2222
steps:
2323
- name: Slash Command Dispatch
2424
uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2

.github/workflows/style_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions: {}
2121
jobs:
2222
style_check:
2323
name: Style Checks
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-slim
2525

2626
steps:
2727
# Checkout current git repository

.github/workflows/type_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions: {}
3030
jobs:
3131
static_check:
3232
name: Static Type Check
33-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-slim
3434

3535
steps:
3636
# Checkout current git repository

.github/workflows/welcome.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
greeting:
2323
name: Greet First-Time Contributors
2424
if: github.event_name == 'issues' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-slim
2626

2727
steps:
2828
- uses: actions/first-interaction@v3.1.0

0 commit comments

Comments
 (0)