-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 1.19 KB
/
regression_tests.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
name: gpuGym Regression Testing
run-name: PR Regression Testing
on:
pull_request:
branches: [ "main" ]
jobs:
Self-hosted-unit-testing:
runs-on: [self-hosted, Linux, X64]
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Checkout main and run test
run: |
git checkout main
source ~/anaconda3/etc/profile.d/conda.sh
conda activate CI
pip install -r requirements.txt
pip install -e .
python tests/regression_tests/run_n_iterations.py --output_tensor_file="main_output.pt"
- name: Checkout PR and run test
run: |
git fetch --unshallow
git checkout ${{ github.event.pull_request.head.sha }}
source ~/anaconda3/etc/profile.d/conda.sh
conda activate CI
pip install -r requirements.txt
pip install -e .
python tests/regression_tests/run_n_iterations.py --output_tensor_file="pr_output.pt"
- name: Compare results
run: |
source ~/anaconda3/etc/profile.d/conda.sh
conda activate CI
pip install -r requirements.txt
pip install -e .
pytest tests/regression_tests/