Skip to content

Commit e74c3d3

Browse files
Update GitHub Actions to use v4 of checkout and setup-pdm (#380)
* Update GitHub Actions to use v4 of checkout and setup-pdm * Update run_test.yaml * Update deploy_release.yaml * Update run_test.yaml * Update run_test.yaml * Update run_test.yaml * Update docker-compose.yaml * Add user root to all services in docker-compose * Update deploy_release.yaml
1 parent ba345a6 commit e74c3d3

File tree

4 files changed

+32
-15
lines changed

4 files changed

+32
-15
lines changed

.github/workflows/deploy_release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ on:
77

88
jobs:
99
ci:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: pdm-project/setup-pdm@v3
13+
- uses: actions/checkout@v5
14+
- uses: pdm-project/setup-pdm@v4
1515
with:
16-
python-version: '3.x'
1716
cache: true
1817
- name: Install dependencies
1918
run: pdm install

.github/workflows/run_test.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ on:
2121
jobs:
2222
ci-pip-install-from-source:
2323
# This is to verify the setup.py as a mitigation for remain python 3.6.2+ capability
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-22.04
2525
strategy:
2626
max-parallel: 2
2727
matrix:
28-
python-version: [3.6, 3.7]
28+
python-version: [3.8, 3.11]
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v5
3131
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v4
32+
uses: actions/setup-python@v6
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535
- name: Install nebulagraph-python from source and test dependencies
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
max-parallel: 2
5454
matrix:
55-
python-version: [3.7, 3.8, 3.9, '3.10', 3.11]
55+
python-version: ['3.10', 3.11, 3.12, 3.13]
5656

5757
steps:
5858
- name: Maximize runner space
@@ -63,9 +63,9 @@ jobs:
6363
remove-android: 'true'
6464
remove-haskell: 'true'
6565

66-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v5
6767
- name: Set up Python ${{ matrix.python-version }}
68-
uses: pdm-project/setup-pdm@v3
68+
uses: pdm-project/setup-pdm@v4
6969
with:
7070
python-version: ${{ matrix.python-version }}
7171
cache: true
@@ -94,14 +94,14 @@ jobs:
9494
files: coverage.xml
9595

9696
example-test:
97-
runs-on: ubuntu-latest
97+
runs-on: ubuntu-22.04
9898
strategy:
9999
matrix:
100-
python-version: [3.11, 3.12]
100+
python-version: ['3.10', 3.11, 3.12, 3.13]
101101
steps:
102-
- uses: actions/checkout@v3
102+
- uses: actions/checkout@v5
103103
- name: Set up Python ${{ matrix.python-version }}
104-
uses: pdm-project/setup-pdm@v3
104+
uses: pdm-project/setup-pdm@v4
105105
with:
106106
python-version: ${{ matrix.python-version }}
107107
cache: true

tests/docker-compose-ssl.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: '3.4'
22
services:
33
metad0:
44
image: vesoft/nebula-metad:nightly
5+
user: root
56
environment:
67
USER: root
78
TZ: "${TZ}"
@@ -43,6 +44,7 @@ services:
4344

4445
metad1:
4546
image: vesoft/nebula-metad:nightly
47+
user: root
4648
environment:
4749
USER: root
4850
TZ: "${TZ}"
@@ -84,6 +86,7 @@ services:
8486

8587
metad2:
8688
image: vesoft/nebula-metad:nightly
89+
user: root
8790
environment:
8891
USER: root
8992
TZ: "${TZ}"
@@ -125,6 +128,7 @@ services:
125128

126129
storaged0:
127130
image: vesoft/nebula-storaged:nightly
131+
user: root
128132
environment:
129133
USER: root
130134
TZ: "${TZ}"
@@ -171,6 +175,7 @@ services:
171175

172176
storaged1:
173177
image: vesoft/nebula-storaged:nightly
178+
user: root
174179
environment:
175180
USER: root
176181
TZ: "${TZ}"
@@ -217,6 +222,7 @@ services:
217222

218223
storaged2:
219224
image: vesoft/nebula-storaged:nightly
225+
user: root
220226
environment:
221227
USER: root
222228
TZ: "${TZ}"
@@ -263,6 +269,7 @@ services:
263269

264270
graphd0:
265271
image: vesoft/nebula-graphd:nightly
272+
user: root
266273
environment:
267274
USER: root
268275
TZ: "${TZ}"
@@ -307,6 +314,7 @@ services:
307314

308315
graphd1:
309316
image: vesoft/nebula-graphd:nightly
317+
user: root
310318
environment:
311319
USER: root
312320
TZ: "${TZ}"
@@ -351,6 +359,7 @@ services:
351359

352360
graphd2:
353361
image: vesoft/nebula-graphd:nightly
362+
user: root
354363
environment:
355364
USER: root
356365
TZ: "${TZ}"

tests/docker-compose.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: '3.4'
22
services:
33
metad0:
44
image: vesoft/nebula-metad:nightly
5+
user: root
56
environment:
67
USER: root
78
TZ: "${TZ}"
@@ -43,6 +44,7 @@ services:
4344

4445
metad1:
4546
image: vesoft/nebula-metad:nightly
47+
user: root
4648
environment:
4749
USER: root
4850
TZ: "${TZ}"
@@ -84,6 +86,7 @@ services:
8486

8587
metad2:
8688
image: vesoft/nebula-metad:nightly
89+
user: root
8790
environment:
8891
USER: root
8992
TZ: "${TZ}"
@@ -125,6 +128,7 @@ services:
125128

126129
storaged0:
127130
image: vesoft/nebula-storaged:nightly
131+
user: root
128132
environment:
129133
USER: root
130134
TZ: "${TZ}"
@@ -171,6 +175,7 @@ services:
171175

172176
storaged1:
173177
image: vesoft/nebula-storaged:nightly
178+
user: root
174179
environment:
175180
USER: root
176181
TZ: "${TZ}"
@@ -217,6 +222,7 @@ services:
217222

218223
storaged2:
219224
image: vesoft/nebula-storaged:nightly
225+
user: root
220226
environment:
221227
USER: root
222228
TZ: "${TZ}"
@@ -263,6 +269,7 @@ services:
263269

264270
graphd0:
265271
image: vesoft/nebula-graphd:nightly
272+
user: root
266273
environment:
267274
USER: root
268275
TZ: "${TZ}"
@@ -307,6 +314,7 @@ services:
307314

308315
graphd1:
309316
image: vesoft/nebula-graphd:nightly
317+
user: root
310318
environment:
311319
USER: root
312320
TZ: "${TZ}"
@@ -351,6 +359,7 @@ services:
351359

352360
graphd2:
353361
image: vesoft/nebula-graphd:nightly
362+
user: root
354363
environment:
355364
USER: root
356365
TZ: "${TZ}"

0 commit comments

Comments
 (0)