Skip to content

Commit 8c38fb7

Browse files
authored
Setup the geos python package CI (#4)
Setting up the python package CI
1 parent 0357a21 commit 8c38fb7

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: geosPythonPackages CI
2+
on: pull_request
3+
4+
# Cancels in-progress workflows for a PR when updated
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-22.04
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.8", "3.9", "3.10", "3.11"]
18+
package-name: ["geos_ats_package", "geosx_mesh_doctor", "geosx_mesh_tools_package", "geosx_xml_tools_package", "hdf5_wrapper_package", "pygeosx_tools_package", "timehistory_package"]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: mpi4py/setup-mpi@v1
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v3
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install package
28+
working-directory: ./${{ matrix.package-name }}
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install pytest yapf toml
32+
python -m pip install .
33+
# - name: Lint with yapf
34+
# working-directory: ./${{ matrix.package-name }}
35+
# run: |
36+
# yapf -r --diff .
37+
# - name: Test with pytest
38+
# working-directory: ./${{ matrix.package-name }}
39+
# run: |
40+
# pytest

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
Welcome to the GEOS Python Package Repository!
3+
-----------------------------------------------
4+
5+
This repository contains a set of python packages that are used alongside [GEOS](https://github.com/GEOS-DEV/GEOS).
6+
They can be installed automatically by running "make geosx_python_tools" in the GEOS build directory, or can be installed manually with pip.
7+
See the [documentation](https://geosx-geosx.readthedocs-hosted.com/projects/geosx-geospythonpackages/en/latest/) for additional details about the packages and how to use them.
8+

timehistory_package/setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ license = LGPL-2.1
88

99
[options]
1010
packages =
11-
plot_time_history
11+
timehistory
1212
install_requires =
1313
matplotlib
14-
hdf5_wrapper
14+
h5py
1515
numpy
1616
python_requires = >=3.6

0 commit comments

Comments
 (0)