Skip to content

Commit 4484c10

Browse files
authored
Update actions on benchmark (#130)
* Update actions on benchmark * Bump actions and base image * Fix Python version
1 parent 56d7de5 commit 4484c10

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

.github/workflows/run-benchmark.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ permissions:
6969

7070
jobs:
7171
run-benchmark:
72-
runs-on: ubuntu-20.04
72+
runs-on: ubuntu-22.04
7373

7474
env:
7575
# Which browser to use (one of 'chromium', 'firefox', 'webkit')
@@ -92,35 +92,35 @@ jobs:
9292

9393
steps:
9494
- name: Checkout benchmarks project
95-
uses: actions/checkout@v2
95+
uses: actions/checkout@v3
9696
with:
9797
path: benchmarks
9898

9999
- name: Install node
100-
uses: actions/setup-node@v2
100+
uses: actions/setup-node@v3
101101
with:
102-
node-version: "14.x"
102+
node-version: "18.x"
103103

104104
- name: Install Python
105-
uses: actions/setup-python@v2
105+
uses: actions/setup-python@v4
106106
with:
107-
python-version: 3.8
107+
python-version: "3.10"
108108

109109
- uses: iterative/setup-cml@v1
110110

111111
- name: Cache pip on Linux
112-
uses: actions/cache@v1
112+
uses: actions/cache@v3
113113
with:
114114
path: ~/.cache/pip
115-
key: ${{ runner.os }}-pip-3.8-${{ hashFiles('**/requirements.txt', 'setup.cfg') }}
115+
key: ${{ runner.os }}-pip-3.10-${{ hashFiles('**/requirements.txt', 'setup.cfg') }}
116116
restore-keys: |
117-
${{ runner.os }}-pip-3.8
117+
${{ runner.os }}-pip-3.10
118118
119119
- name: Get yarn cache directory path
120120
id: yarn-cache-dir-path
121121
run: echo "::set-output name=dir::$(yarn cache dir)"
122122
- name: Cache yarn
123-
uses: actions/cache@v1
123+
uses: actions/cache@v3
124124
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
125125
with:
126126
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -131,15 +131,15 @@ jobs:
131131
# First run the benchmark on the reference
132132
- name: Checkout reference branch
133133
if: ${{ inputs.event == 'workflow_dispatch' }}
134-
uses: actions/checkout@v2
134+
uses: actions/checkout@v3
135135
with:
136136
repository: jupyterlab/jupyterlab
137137
ref: ${{ inputs.reference_branch }}
138138
path: reference
139139

140140
- name: Checkout reference branch - schedule
141141
if: ${{ inputs.event == 'schedule' }}
142-
uses: actions/checkout@v2
142+
uses: actions/checkout@v3
143143
with:
144144
repository: ${{ env.CHALLENGER_REPOSITORY }}
145145
ref: ${{ env.CHALLENGER_REF }}
@@ -303,7 +303,7 @@ jobs:
303303
304304
- name: Publish the report
305305
if: ${{ inputs.event == 'schedule' }}
306-
uses: actions/github-script@v5
306+
uses: actions/github-script@v6
307307
with:
308308
script: |
309309
const fs = require('fs');
@@ -319,7 +319,7 @@ jobs:
319319
320320
- name: Upload Benchmark Test assets
321321
if: always()
322-
uses: actions/upload-artifact@v2
322+
uses: actions/upload-artifact@v3
323323
with:
324324
name: ${{ inputs.artifacts_name }}
325325
path: |

.github/workflows/run-memory-leak.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,41 +19,41 @@ on:
1919

2020
jobs:
2121
memory-leak-test:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-22.04
2323

2424
env:
2525
# How many samples to compute
2626
MEMORY_LEAK_NSAMPLES: ${{ inputs.samples }}
2727

2828
steps:
2929
- name: Checkout benchmarks project
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131
with:
3232
path: benchmarks
3333

3434
- name: Install node
35-
uses: actions/setup-node@v2
35+
uses: actions/setup-node@v3
3636
with:
37-
node-version: "14.x"
37+
node-version: "18.x"
3838

3939
- name: Install Python
40-
uses: actions/setup-python@v2
40+
uses: actions/setup-python@v4
4141
with:
42-
python-version: 3.8
42+
python-version: "3.10"
4343

4444
- name: Cache pip on Linux
45-
uses: actions/cache@v1
45+
uses: actions/cache@v3
4646
with:
4747
path: ~/.cache/pip
48-
key: ${{ runner.os }}-pip-3.8-${{ hashFiles('**/requirements.txt', 'setup.cfg') }}
48+
key: ${{ runner.os }}-pip-3.10-${{ hashFiles('**/requirements.txt', 'setup.cfg') }}
4949
restore-keys: |
50-
${{ runner.os }}-pip-3.8
50+
${{ runner.os }}-pip-3.10
5151
5252
- name: Get yarn cache directory path
5353
id: yarn-cache-dir-path
5454
run: echo "::set-output name=dir::$(yarn cache dir)"
5555
- name: Cache yarn
56-
uses: actions/cache@v1
56+
uses: actions/cache@v3
5757
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
5858
with:
5959
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -62,7 +62,7 @@ jobs:
6262
${{ runner.os }}-yarn-
6363
6464
- name: Checkout JupyterLab
65-
uses: actions/checkout@v2
65+
uses: actions/checkout@v3
6666
with:
6767
repository: ${{ inputs.repository }}
6868
ref: ${{ inputs.branch }}

.github/workflows/test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,41 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212

1313
env:
1414
# How many times to switch between each tabs
1515
BENCHMARK_SWITCHES: 3
1616

1717
steps:
1818
- name: Checkout benchmarks project
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
with:
2121
path: benchmarks
2222

2323
- name: Install node
24-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v3
2525
with:
26-
node-version: "14.x"
26+
node-version: "18.x"
2727

2828
- name: Install Python
29-
uses: actions/setup-python@v2
29+
uses: actions/setup-python@v4
3030
with:
31-
python-version: 3.8
31+
python-version: "3.10"
3232

3333
- name: Cache pip on Linux
3434
uses: actions/cache@v1
3535
with:
3636
path: ~/.cache/pip
37-
key: ${{ runner.os }}-pip-3.8-${{ hashFiles('**/requirements.txt', 'setup.cfg') }}
37+
key: ${{ runner.os }}-pip-3.10-${{ hashFiles('**/requirements.txt', 'setup.cfg') }}
3838
restore-keys: |
39-
${{ runner.os }}-pip-3.8
39+
${{ runner.os }}-pip-3.10
4040
4141
- name: Get yarn cache directory path
4242
id: yarn-cache-dir-path
4343
run: echo "::set-output name=dir::$(yarn cache dir)"
4444
- name: Cache yarn
45-
uses: actions/cache@v1
45+
uses: actions/cache@v3
4646
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
4747
with:
4848
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -51,7 +51,7 @@ jobs:
5151
${{ runner.os }}-yarn-
5252
5353
- name: Checkout JupyterLab
54-
uses: actions/checkout@v2
54+
uses: actions/checkout@v3
5555
with:
5656
repository: jupyterlab/jupyterlab
5757
ref: master
@@ -114,7 +114,7 @@ jobs:
114114
115115
- name: Upload Test assets
116116
if: always()
117-
uses: actions/upload-artifact@v2
117+
uses: actions/upload-artifact@v3
118118
with:
119119
name: test-assets
120120
path: |

0 commit comments

Comments
 (0)