Skip to content

Commit 37c99ba

Browse files
maksgraczykMaksymilian Graczyk
authored andcommitted
GitHub Actions: Add step names
1 parent 0450f29 commit 37c99ba

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/tests_cpu.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
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

.github/workflows/tests_cpu_no_docker.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)