Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit af590d3

Browse files
committed
CI: now fails fast, added new workflow for 1st-order acoustic tests
1 parent 9f07846 commit af590d3

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Testing for 1st-order acoustic wave equation
2+
3+
name: CI-1st-Order
4+
5+
# Trigger on push or pull request
6+
on:
7+
push:
8+
branches:
9+
- master
10+
pull_request:
11+
branches:
12+
- master
13+
14+
jobs:
15+
build:
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
# Stop all builds in the event of a single failure
19+
fail-fast: true
20+
21+
matrix:
22+
python-version: [3.8, 3.7, 3.6]
23+
os: [ubuntu-latest, macos-latest]
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up Python ${{matrix.python-version}}
28+
uses: actions/setup-python@v1
29+
with:
30+
python-version: ${{matrix.python-version}}
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install -r requirements_1st_order.txt
35+
- name: Test using Pytest
36+
run: |
37+
python -m pytest tests/test_gathers_1st_order.py

.github/workflows/pytest_core.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
build:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
18-
# Prevent all builds stopping in the event of a single failure
19-
fail-fast: false
18+
# Stop all builds in the event of a single failure
19+
fail-fast: true
2020

2121
matrix:
2222
python-version: [3.8, 3.7, 3.6]
@@ -34,4 +34,4 @@ jobs:
3434
pip install -r requirements.txt
3535
- name: Test using Pytest
3636
run: |
37-
python -m pytest tests/
37+
python -m pytest --ignore=tests/test_gathers_1st_order.py tests/

requirements_1st_order.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Requirements for 1st-order acoustic examples and tests
2+
# Specific devito branch with bugfix required currently
3+
git+git://github.com/devitocodes/devito@small_custom_coefficients_fix
4+
pandas
5+
matplotlib
6+
vtk
7+
pyvista
8+
scikit-image

0 commit comments

Comments
 (0)