-
Notifications
You must be signed in to change notification settings - Fork 23
47 lines (41 loc) · 1.45 KB
/
profiler.yml
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
43
44
45
46
47
name: Profiler
on:
pull_request:
jobs:
run_profiler:
name: Run Profiler
strategy:
matrix:
os: [single-cell-8c64g-runner]
python-version: ["3.11"]
runs-on: ${{matrix.os}}
permissions: # these permissions must be set for AWS auth to work!
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: PushDockerImage
- name: Run all tests
run: |
# Download gnu time tool
sudo apt-get update -y
sudo apt-get install wget -y
# Download the right version of python
#sudo apt install python3.11 -y
# Installing mount-s3
sudo wget https://s3.amazonaws.com/mountpoint-s3-release/latest/x86_64/mount-s3.deb
sudo apt install -y ./mount-s3.deb
# Setting up mount-s3. We use S3 file system as it is necessary to persist the
# profiling run data that are performed below
mkdir ./census-profiler-tests
mkdir ./s3_cache
echo `pwd`
sudo mount-s3 census-profiler-tests-trial `pwd`/census-profiler-tests --cache `pwd`/s3_cache --metadata-ttl 300
./tools/perf_checker/perf_checker.sh