Skip to content

[Feature] Tests via Github actions + README #4

[Feature] Tests via Github actions + README

[Feature] Tests via Github actions + README #4

Workflow file for this run

name: "Unit tests"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
jobs:
all:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
submodules: 'recursive'
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.8.12'
- name: Install OpenMPI & Boost for gt4py
run: |
sudo apt-get install libopenmpi-dev libboost1.74-dev
- name: Install Python packages
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .[test]
- name: Run serial-cpu tests
run: |
pytest -x tests
- name: Run parallel-cpu tests
run: |
pytest -x tests/mpi