-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (43 loc) · 1.58 KB
/
run_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
43
44
45
46
47
48
49
50
51
52
53
name: Run benchmark tests
on:
pull_request:
push:
branches: [master]
jobs:
run_test:
name: Run optimization bench on intel_dev
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.10']
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set pkgs_dirs
run: |
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
- name: Add conda to system path
run: echo $CONDA/bin >> $GITHUB_PATH
- name: Create Intel test environment
run: conda env create -f environments/intel.yaml
- name: Create stock test environment
run: conda env create -f environments/stock.yaml
- name: Run tests in Intel environment
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate intel_env || exit 1
# This is toy run for GH action,
# The arguments are really bad for real perf testing, use default arguments instead
python numpy/umath/umath_mem_bench.py -v --size 10 --goal-time 0.01 --repeats 1 || exit 1
- name: Run tests in stock environment
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate stock_env || exit 1
# This is toy run for GH action,
# The arguments are really bad for real perf testing, use default arguments instead
python numpy/umath/umath_mem_bench.py -v --size 10 --goal-time 0.01 --repeats 1 || exit 1