-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (39 loc) · 1.17 KB
/
run-benchmark-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: run-benchmark-tests
on:
pull_request:
types: [ opened, synchronize, reopened, edited ]
branches:
- main
concurrency:
group: run-benchmark-tests_${{ github.ref }}
cancel-in-progress: true
jobs:
run-benchmark-tests:
if: ${{ !github.event.repository.fork }}
runs-on: self-hosted
timeout-minutes: 3600
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Print GITHUB_WORKSPACE
run: |
echo ${GITHUB_WORKSPACE}
pwd
ls -lah
- name: Fix Directory Structure
run: |
mkdir /home/runner/_work/claasp_backup
mv -f /home/runner/_work/claasp/claasp/* /home/runner/_work/claasp_backup
rm -rf /home/runner/_work/claasp/
mkdir /home/runner/_work/claasp
mv -f /home/runner/_work/claasp_backup/* /home/runner/_work/claasp
chmod g+w /home/runner/_work/claasp/ -R
rm -rf /home/runner/_work/claasp_backup
- name: Run pytest-benchmark
run: |
cd /home/runner/_work/claasp
echo Running Benchmark tests
make benchmark-tests