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

Commit 97d18a0

Browse files
author
Keith Roberts
authored
Create workflows (#216)
* CI testing on Github Action workflows * reflect `pybind11` change on README and no longer pin `pyamg`
1 parent eb63399 commit 97d18a0

File tree

5 files changed

+56
-104
lines changed

5 files changed

+56
-104
lines changed

.circleci/config.yml

-94
This file was deleted.

.github/workflows/testing.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: "3.x"
16+
- uses: actions/checkout@v2
17+
- name: Lint with flake8
18+
run: |
19+
pip install flake8
20+
flake8 .
21+
- name: Lint with black
22+
run: |
23+
pip install black
24+
black --check .
25+
26+
build:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
python-version: [3.6, 3.7, 3.8, 3.9]
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Set up Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Install CGAL 5
39+
run: |
40+
sudo apt install -y libcgal-dev
41+
- name: Install other dependencies
42+
run: |
43+
sudo apt install -y libopenmpi3 libopenmpi-dev openmpi-bin
44+
sudo apt install -y libhdf5-dev
45+
- name: Test with tox
46+
run: |
47+
pip install tox
48+
tox
49+
- uses: codecov/codecov-action@v1

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ Table of contents
5757
Installation
5858
============
5959

60-
For installation, SeismicMesh needs [CGAL](https://www.cgal.org/) and
61-
[pybind11](https://github.com/pybind/pybind11):
60+
For installation, SeismicMesh needs [CGAL](https://www.cgal.org/):
6261

63-
sudo apt install libcgal-dev python3-pybind11
62+
sudo apt install libcgal-dev
6463

6564
After that, SeismicMesh can be installed from the Python Package Index
6665
([pypi](https://pypi.org/project/SeismicMesh/)), so with:

setup.cfg

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ classifiers =
2525
Topic :: Scientific/Engineering :: Visualization
2626
[options]
2727
packages = find:
28-
setup_requires = pybind11 >= 2.6
2928
install_requires =
3029
numpy
3130
segyio
@@ -34,8 +33,7 @@ install_requires =
3433
h5py
3534
matplotlib
3635
mpi4py
37-
pybind11 >= 2.6
38-
pyamg == 4.0.0
36+
pyamg
3937
pytest_codeblocks
4038
python_requires = >=3.0
4139

tox.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36, py37, py38, py39
2+
envlist = py3
33
isolated_build = True
44

55
[mpi]
@@ -9,11 +9,11 @@ mpiexec = {env:MPIEXEC:mpiexec}
99
setenv =
1010
MPLBACKEND = agg
1111
deps =
12-
pytest-codeblocks
13-
requests
12+
mpi4py
1413
pytest
14+
pytest-codeblocks
1515
pytest-cov
16-
mpi4py
16+
requests
1717
whitelist_externals = {[mpi]mpiexec}
1818
commands =
1919
{[mpi]mpiexec} -n 2 -mca btl ^openib pytest --cov {envsitepackagesdir}/SeismicMesh --cov-report xml --cov-report term --ignore=pybind11 -m "parallel2"

0 commit comments

Comments
 (0)