-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ba9599
commit 9d4297a
Showing
1 changed file
with
70 additions
and
70 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,84 @@ | ||
# name: Verification | ||
name: Verification | ||
|
||
# on: | ||
# # Trigger the workflow on push or pull request, | ||
# # but only for the master branch | ||
# push: | ||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# # pull_request: | ||
# # branches: | ||
# # - master | ||
|
||
# jobs: | ||
# tutorials: | ||
# name: ${{ matrix.name }} | ||
# runs-on: ${{ matrix.os }} | ||
jobs: | ||
tutorials: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
# env: | ||
# DEVITO_ARCH: "${{ matrix.compiler }}" | ||
# DEVITO_LANGUAGE: ${{ matrix.language }} | ||
# DEVITO_BACKEND: "core" | ||
# PYTHON_VERSION: "3.7" | ||
# RUN_CMD: "" | ||
env: | ||
DEVITO_ARCH: "${{ matrix.compiler }}" | ||
DEVITO_LANGUAGE: ${{ matrix.language }} | ||
DEVITO_BACKEND: "core" | ||
PYTHON_VERSION: "3.7" | ||
RUN_CMD: "" | ||
|
||
# strategy: | ||
# # Prevent all build to stop if a single one fails | ||
# fail-fast: false | ||
# matrix: | ||
# name: [tutos-ubuntu-gcc-py37, | ||
# tutos-osx-gcc-py37, | ||
# tutos-osx-clang-py37] | ||
strategy: | ||
# Prevent all build to stop if a single one fails | ||
fail-fast: false | ||
matrix: | ||
name: [tutos-ubuntu-gcc-py37, | ||
tutos-osx-gcc-py37, | ||
tutos-osx-clang-py37] | ||
|
||
# include: | ||
# - name: tutos-ubuntu-gcc-py37 | ||
# os: ubuntu-16.04 | ||
# compiler: gcc-7 | ||
# language: "openmp" | ||
include: | ||
- name: tutos-ubuntu-gcc-py37 | ||
os: ubuntu-16.04 | ||
compiler: gcc-7 | ||
language: "openmp" | ||
|
||
# - name: tutos-osx-gcc-py37 | ||
# os: macos-latest | ||
# compiler: gcc-9 | ||
# language: "openmp" | ||
- name: tutos-osx-gcc-py37 | ||
os: macos-latest | ||
compiler: gcc-9 | ||
language: "openmp" | ||
|
||
# - name: tutos-osx-clang-py37 | ||
# os: macos-latest | ||
# compiler: clang | ||
# language: "C" | ||
- name: tutos-osx-clang-py37 | ||
os: macos-latest | ||
compiler: clang | ||
language: "C" | ||
|
||
# steps: | ||
# - name: Checkout devito_book | ||
# uses: actions/checkout@v1 | ||
steps: | ||
- name: Checkout devito_book | ||
uses: actions/checkout@v1 | ||
|
||
# - name: Set up Python 3.7 | ||
# uses: actions/setup-python@v1 | ||
# with: | ||
# python-version: 3.7 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
# - name: Install compilers for OSX | ||
# if: runner.os == 'macOS' | ||
- name: Install compilers for OSX | ||
if: runner.os == 'macOS' | ||
run: | | ||
if [ "${{ matrix.compiler }}" = "gcc-9" ]; then | ||
brew install gcc | ||
else | ||
sudo xcode-select -s /Applications/Xcode_11.app/Contents/Developer | ||
fi | ||
# dask error on osx, skip dask tuto | ||
echo "::set-env name=SKIP::--deselect=examples/seismic/tutorials/04_dask.ipynb" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e . | ||
pip install matplotlib | ||
pip install --user git+https://github.com/devitocodes/devito.git | ||
# - name: Waves (2.1 to 2.4) | ||
# run: | | ||
# if [ "${{ matrix.compiler }}" = "gcc-9" ]; then | ||
# brew install gcc | ||
# else | ||
# sudo xcode-select -s /Applications/Xcode_11.app/Contents/Developer | ||
# fi | ||
# # dask error on osx, skip dask tuto | ||
# echo "::set-env name=SKIP::--deselect=examples/seismic/tutorials/04_dask.ipynb" | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install -e . | ||
# pip install matplotlib | ||
# pip install --user git+https://github.com/devitocodes/devito.git | ||
# # - name: Waves (2.1 to 2.4) | ||
# # run: | | ||
# # cd fdm-devito-notebooks/wave/src-wave/wave1D/devito | ||
# # $RUN_CMD py.test -s -v $SKIP wave1D_u0.py::test_quadratic wave1D_u0.py::test_constant | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/[email protected] | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# name: ${{ matrix.name }} | ||
# file: ./*_coverage.xml | ||
# cd fdm-devito-notebooks/wave/src-wave/wave1D/devito | ||
# $RUN_CMD py.test -s -v $SKIP wave1D_u0.py::test_quadratic wave1D_u0.py::test_constant | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: ${{ matrix.name }} | ||
file: ./*_coverage.xml | ||
|