Skip to content

Commit

Permalink
Updated pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed Dec 26, 2020
1 parent 95028e4 commit ec49be0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 29 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/publish.yml

This file was deleted.

23 changes: 21 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Python Test
name: Python Test, Build and Publish
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.5', '3.6', '3.7', '3.8']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -23,3 +22,23 @@ jobs:
python setup.py test
- name: Test Installation
run: python setup.py install
deploy:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Publish to PyPi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Publish Brew formula
run: bash publish-brew-formula.sh # installs the latest published version and generates formula

0 comments on commit ec49be0

Please sign in to comment.