Skip to content

Commit

Permalink
added autopush for tagged commits to testpypi, pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
frank1010111 committed Nov 6, 2021
1 parent 178f6bf commit a10ec51
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish pywaterflood builds to PyPI and TestPyPI

on: push

jobs:
build-and-publish:
name: Build and publish pywaterflood to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: set up python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install pypa/build
run: python -m pip install build --user
- name: build wheel and source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# `pywaterflood`: Waterflood Connectivity Analysis
[![Documentation Status](https://readthedocs.org/projects/pywaterflood/badge/?version=latest)](https://pywaterflood.readthedocs.io/en/latest/?badge=latest)

`pywaterflood` provides tools for capacitance resistance modeling, a physics-inspired model for estimating waterflood performance. It estimates the connectivities and time decays between injectors and producers.

## Overview
Expand Down
7 changes: 6 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
sphinx==4.2.0
sphinx-autoapi==1.8.4
sphinx-rtd-theme==1.0
myst-nb==0.13.1
myst-nb==0.13.1
pandas==1.2.4
matplotlib==3.3.4
numba==0.53.1
numpy==1.20.1
scipy==1.6.2

0 comments on commit a10ec51

Please sign in to comment.