Notebook testing #54
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
on: [pull_request, push] | |
jobs: | |
pypi: | |
env: | |
IGNORE_CONDA: true | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-latest] | |
python-version: ["3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: mpi4py/setup-mpi@v1 | |
- run: | | |
python3 -m pip install -U pip | |
- if: ${{ contains(matrix.os, 'ubuntu') }} | |
run: | | |
./pr-check.sh | |
- if: ${{ contains(matrix.os, 'macos') }} | |
run: | | |
export CC=$(brew --prefix llvm)/bin/clang | |
export CXX=$(brew --prefix llvm)/bin/clang++ | |
export LDFLAGS="-L$(brew --prefix llvm)/lib | |
-Wl,-rpath,$(brew --prefix llvm)/lib $LDFLAGS" | |
export CPPFLAGS="-I$(brew --prefix llvm)/include $CPPFLAGS" | |
./pr-check.sh | |
- uses: codecov/codecov-action@v1 | |
conda: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-latest] | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
channels: conda-forge | |
python-version: ${{ matrix.python-version }} | |
- run: | | |
export CONDA_HOME=$CONDA | |
conda install conda-build | |
.conda/bin/build ${{ matrix.python-version }} |