-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (39 loc) · 1.17 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
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.9', '3.10', '3.11']
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
python run_tests.py
- name: Run tests in stock environment
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate stock_env
python run_tests.py