-
Notifications
You must be signed in to change notification settings - Fork 69
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
c9c5df0
commit 383eb33
Showing
6 changed files
with
789 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish tfcausalimpct to PyPI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U setuptools wheel twine | ||
- name: Build dist | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
- name: Upload to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Run Unit Tests | ||
on: [push, pull_request] | ||
jobs: | ||
run-CI: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python: [3.6, 3.7, 3.8, 3.9] | ||
exclude: | ||
- os: macos-latest | ||
python: 3.6 | ||
- os: macos-latest | ||
python: 3.7 | ||
- os: macos-latest | ||
python: 3.8 | ||
- os: windows-latest | ||
python: 3.6 | ||
- os: windows-latest | ||
python: 3.7 | ||
- os: windows-latest | ||
python: 3.8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Python Version ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }} | ||
restore-keys: | | ||
${{ runner.os }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools tox tox-gh-actions | ||
- name: Test with tox | ||
run: tox | ||
env: | ||
TOX_SKIP_ENV: coverage,GHA-coverage | ||
|
||
- name: Lint | ||
if: ${{ matrix.python == '3.9' && runner.os == 'Linux'}} | ||
run: tox -e lint | ||
|
||
- name: isort | ||
if: ${{ matrix.python == '3.9' && runner.os == 'Linux'}} | ||
run: tox -e isort-check | ||
|
||
|
||
- name: Build Coverage | ||
if: ${{ matrix.python == '3.9' && runner.os == 'Linux'}} | ||
run: tox -e GHA-coverage | ||
|
||
- name: Upload Coveralls | ||
if: ${{ matrix.python == '3.9' && runner.os == 'Linux'}} | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: coverage.lcov |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
# limitations under the License. | ||
|
||
|
||
__version__ = '0.0.10rc0' | ||
__version__ = '0.0.10rc1' |
Oops, something went wrong.