Quantity factory to use dsl Float type as default #91
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Unit tests" | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | |
jobs: | |
all: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: [3.8.12, 3.11.7] | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
submodules: 'recursive' | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python }} | |
- 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: | | |
coverage run --rcfile=setup.cfg -m pytest -x tests | |
- name: Run parallel-cpu tests | |
run: | | |
mpirun -np 6 --oversubscribe coverage run --rcfile=setup.cfg -m mpi4py -m pytest -x tests/mpi | |
- name: Output code coverage | |
run: | | |
coverage combine | |
coverage report |