-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (39 loc) · 1.12 KB
/
tests_cpu_no_docker.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
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
name: Run pytest (CPU + CPU with OpenMP)
runs-on: ubuntu-latest
steps:
- name: Download Joey
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Fetch cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt
- name: Install Joey
run: pip install -e .
- name: Run pytest (CPU)
run: DEVITO_LANGUAGE=C pytest
- name: Run pytest (CPU with OpenMP)
run: DEVITO_LANGUAGE=openmp DEVITO_ARCH=gcc-9 pytest