Skip to content

[pre-commit.ci] pre-commit autoupdate #73

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #73

Workflow file for this run

name: Tests
on: pull_request
env:
NEK_VERSION: "19.0"
NEK_SOURCE_ROOT: /home/runner/Nek5000
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8]
steps:
- name: Checkout
uses: actions/checkout@v3
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@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache Nek5000
id: nek-cache
uses: actions/cache@v3
with:
path: ${{ env.NEK_SOURCE_ROOT }}
key: ${{ runner.os }}-nek-${{ env.NEK_VERSION }}
- name: Install dependencies
run: |
curl -LO --write-out '%{url_effective}' https://github.com/Nek5000/Nek5000/releases/download/v${NEK_VERSION}/Nek5000-${NEK_VERSION}.tar.gz
tar -xf Nek5000-${NEK_VERSION}.tar.gz -C ~
python -m pip install --upgrade pip
pip install .[tests]
- name: Run tests
run: |
pytest -v --runslow tests