Skip to content

Commit

Permalink
Moved deploy to github actions
Browse files Browse the repository at this point in the history
Simplified travis structure
  • Loading branch information
joamag committed Nov 22, 2020
1 parent 57ce60b commit 4f4bdc1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
@@ -0,0 +1,25 @@
name: Deploy Workflow
on:
push:
tags:
- "*"
jobs:
build:
name: Build
strategy:
matrix:
python-version: [2.7]
runs-on: ubuntu-latest
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- run: python --version
- run: pip install -r requirements.txt
- run: pip install -r extra.txt
- run: ADAPTER=tiny HTTPBIN=httpbin.bemisc.com python setup.py test
- run: pip install twine wheel
- run: python setup.py sdist bdist_wheel
- run: python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
14 changes: 2 additions & 12 deletions .travis.yml
Expand Up @@ -28,15 +28,5 @@ install:
env:
- ADAPTER=mongo HTTPBIN=httpbin.bemisc.com
- ADAPTER=tiny HTTPBIN=httpbin.bemisc.com
script: coverage run --source=quorum setup.py test
after_success: coveralls
deploy:
provider: pypi
user: joamag
password:
secure: CJ2EKdJCjwsVNoByH2C0FXztMJRo1iWgQw3etfMD5aDa0KdyI8cg/VZHDaEYQ3z5IBepRYPXN7eipjCvJpEJPAylQWzzyJUgSUOyNDQHDBfUAe0Mp9ODrNHZPjGnZIWSOAOY1+yHXSo5p8CIgnRuAhnq9KazSfXhqTUx6yoV5IY=
distributions: sdist bdist_wheel
on:
tags: true
python: "2.7"
condition: $ADAPTER = mongo
script: if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage run --source=quorum setup.py test; else python setup.py test; fi
after_success: if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coveralls; fi

0 comments on commit 4f4bdc1

Please sign in to comment.