File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed
Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1414 name : Build a Docker image
1515 runs-on : self-hosted
1616 steps :
17- - uses : actions/checkout@v2
18- - run : docker build -f Dockerfile_CPU -t devitocodes/joey:latest .
17+ - name : Download Joey
18+ uses : actions/checkout@v2
19+ - name : Build
20+ run : docker build -f Dockerfile_CPU -t devitocodes/joey:latest .
1921 test_cpu :
2022 name : Run pytest on Docker (CPU)
2123 runs-on : self-hosted
Original file line number Diff line number Diff line change @@ -14,21 +14,28 @@ jobs:
1414 name : Run pytest (CPU + CPU with OpenMP)
1515 runs-on : ubuntu-latest
1616 steps :
17- - uses : actions/checkout@v2
18- - uses : actions/setup-python@v2
17+ - name : Download Joey
18+ uses : actions/checkout@v2
19+ - name : Set up Python 3.x
20+ uses : actions/setup-python@v2
1921 with :
2022 python-version : ' 3.x'
21- - uses : actions/cache@v2
23+ - name : Fetch cache
24+ uses : actions/cache@v2
2225 with :
2326 path : ~/.cache/pip
2427 key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
2528 restore-keys : |
2629 ${{ runner.os }}-pip-
2730 ${{ runner.os }}-
28- - run : |
31+ - name : Install dependencies
32+ run : |
2933 python -m pip install --upgrade pip
3034 pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
3135 pip install -r requirements.txt
32- - run : pip install -e .
33- - run : DEVITO_LANGUAGE=C pytest
34- - run : DEVITO_LANGUAGE=openmp DEVITO_ARCH=gcc-9 pytest
36+ - name : Install Joey
37+ run : pip install -e .
38+ - name : Run pytest (CPU)
39+ run : DEVITO_LANGUAGE=C pytest
40+ - name : Run pytest (CPU with OpenMP)
41+ run : DEVITO_LANGUAGE=openmp DEVITO_ARCH=gcc-9 pytest
You can’t perform that action at this time.
0 commit comments