Skip to content

Commit e71a612

Browse files
committed
CI: Use ubuntu-slim for lightweight workflows
1 parent a56a4c4 commit e71a612

11 files changed

Lines changed: 13 additions & 13 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/publish-to-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ permissions: {}
3939
jobs:
4040
build:
4141
name: Build distribution 📦
42-
runs-on: ubuntu-latest
42+
runs-on: ubuntu-slim
4343

4444
steps:
4545
- name: Checkout
@@ -82,7 +82,7 @@ jobs:
8282
if: github.repository == 'GenericMappingTools/pygmt'
8383
needs:
8484
- build
85-
runs-on: ubuntu-latest
85+
runs-on: ubuntu-slim
8686
environment:
8787
name: testpypi
8888
url: https://test.pypi.org/project/pygmt
@@ -106,7 +106,7 @@ jobs:
106106
if: github.repository == 'GenericMappingTools/pygmt' && startsWith(github.ref, 'refs/tags/')
107107
needs:
108108
- build
109-
runs-on: ubuntu-latest
109+
runs-on: ubuntu-slim
110110
environment:
111111
name: pypi
112112
url: https://pypi.org/project/pygmt/

.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

0 commit comments

Comments
 (0)