-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (50 loc) · 1.4 KB
/
tests_slow.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Tests slow
on:
workflow_dispatch:
env:
PIP_CACHE_DIR: ~/.cache/pip
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [3.9]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install gfortran libopenmpi-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip requirements
id: pip-cache
uses: actions/cache@v2
with:
path: ${{ env.PIP_CACHE_DIR }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.*') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Verify Python environment
run: |
pip list
pip cache list
- name: Install dependencies
run: |
git clone --depth 1 https://github.com/snek5000/Nek5000.git lib/Nek5000
python -m pip install --upgrade pip
pip install -e .[tests]
- name: Run tests
run: |
export NEK_SOURCE_ROOT=$(pwd)"/lib/Nek5000"
pytest -v --runslow --cov-report=xml --cov-report=term-missing
- name: Upload coverage to codecov
if: ${{ success() }}
uses: codecov/codecov-action@v2