Skip to content

Commit e975e13

Browse files
authored
ci: use ubuntu-slim for lightweight workflows (deepmodeling#5742)
## Summary - switch lightweight label, mirror, TODO, and pass aggregation jobs to ubuntu-slim - switch the Python test duration aggregation job to ubuntu-slim - keep build and test execution jobs on their existing runners ## Validation - python YAML parse for all workflow files - git diff --check - ruff check . Note: ruff format --check . still reports pre-existing formatting in dpa_adapt/cli.py, which is unrelated to this workflow-only change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated several GitHub Actions jobs to run on a slimmer Ubuntu runner. * Applied this environment change across build, test, packaging, labeling, mirroring, and maintenance workflows. * No workflow steps, dependencies, or job logic were changed. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent b95f21e commit e975e13

10 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build_cc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
pass:
7878
name: Pass building C++
7979
needs: [buildcc]
80-
runs-on: ubuntu-latest
80+
runs-on: ubuntu-slim
8181
if: always()
8282
steps:
8383
- name: Decide whether the needed jobs succeeded or failed

.github/workflows/build_wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
pass:
193193
name: Pass testing build wheels
194194
needs: [build_wheels, build_sdist, build_docker, build_pypi_index]
195-
runs-on: ubuntu-latest
195+
runs-on: ubuntu-slim
196196
if: always()
197197
steps:
198198
- name: Decide whether the needed jobs succeeded or failed

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
permissions:
88
contents: read
99
pull-requests: write
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-slim
1111
steps:
1212
- uses: actions/labeler@v6
1313
with:

.github/workflows/mirror_gitee.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
jobs:
1717
git-mirror:
1818
if: github.repository_owner == 'deepmodeling'
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-slim
2020
steps:
2121
- uses: wearerequired/git-mirror-action@v1
2222
env:

.github/workflows/package_c.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
pass:
102102
name: Pass building c library
103103
needs: [build_c, test_c]
104-
runs-on: ubuntu-latest
104+
runs-on: ubuntu-slim
105105
if: always()
106106
steps:
107107
- name: Decide whether the needed jobs succeeded or failed

.github/workflows/remove_test_cuda_label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
contents: read
1010
pull-requests: write
1111
# so one can re-trigger the workflow without manually removing the label
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-slim
1313
if: github.repository_owner == 'deepmodeling' && github.event.label.name == 'Test CUDA'
1414
steps:
1515
- uses: actions-ecosystem/action-remove-labels@v1

.github/workflows/test_cc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
pass:
112112
name: Pass testing C++
113113
needs: [testcc]
114-
runs-on: ubuntu-latest
114+
runs-on: ubuntu-slim
115115
if: always()
116116
steps:
117117
- name: Decide whether the needed jobs succeeded or failed

.github/workflows/test_cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
pass:
9898
name: Pass testing on CUDA
9999
needs: [test_cuda]
100-
runs-on: ubuntu-latest
100+
runs-on: ubuntu-slim
101101
if: always()
102102
steps:
103103
- name: Decide whether the needed jobs succeeded or failed

.github/workflows/test_python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
id-token: write
117117
update_durations:
118118
name: Combine and update integration test durations
119-
runs-on: ubuntu-22.04
119+
runs-on: ubuntu-slim
120120
strategy:
121121
fail-fast: false
122122
matrix:
@@ -144,7 +144,7 @@ jobs:
144144
pass:
145145
name: Pass testing Python
146146
needs: [testpython, update_durations]
147-
runs-on: ubuntu-latest
147+
runs-on: ubuntu-slim
148148
if: always()
149149
steps:
150150
- name: Decide whether the needed jobs succeeded or failed

.github/workflows/todo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
build:
88
if: github.repository_owner == 'deepmodeling'
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-slim
1010
steps:
1111
- uses: actions/checkout@v7
1212
- name: Run tdg-github-action

0 commit comments

Comments
 (0)