Skip to content

Commit

Permalink
feat: moved automation to github
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed May 8, 2021
1 parent 34af6f5 commit a02c5bd
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 9 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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
pip install -r extra.txt
- run: 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 }}
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Main Workflow
on: [push]
jobs:
build:
name: Build
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, rc]
runs-on: ubuntu-latest
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- run: python --version
- run: |
pip install -r requirements.txt
pip install -r extra.txt
- run: python setup.py test
build-pypy:
name: Build PyPy
strategy:
matrix:
python-version: [2.7, 3.6]
runs-on: ubuntu-latest
container: pypy:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- run: pypy --version
- run: |
pip install -r requirements.txt
pip install -r extra.txt
- run: pypy setup.py test
9 changes: 0 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,3 @@ install:
- pip install coveralls
script: coverage run --source=appier_console setup.py test
after_success: coveralls
deploy:
provider: pypi
user: joamag
password:
secure: u6FRegAVUjWCT2m9gZlC4FqOgDvlDPz2Tl2FQqTXE9owd2nrvrXDh9LwQTQ8v5XyTrWotpw1Gp2JweoJHFcLOlXUNpzTy9xNRnalRAp9UjaDMtvDrjARRIsaKE4pI3NOtxWwpictyMlnVSgly1lku6Zu7g6aiexCNdcZ57SZcu7+xlaLgQvXZl14qGsJ71gSrZ0gKmRNLFod89Y1LgYOyTMX47kmHqX3GMsphEeTPGUQHVtFrBcEs6leZ0ygdyDTD1v1mpRhjLD9dKgRw8GLul6EpTvPZmOe6jZMsUWqSGgEz8dzZ2+OC96IpZlZlRPritJS9+jbjrUQfILXPXqkWNVGSkxAEEjj0b4tnukbsZWyoHD65jPbMybjKa2OrJLnto02ASLMLIhaIzdXXEzT+pFGoVd0x1TfLZvdrT4t7Yy9g9wNJTtmq1czXghxdYyQMzcN8H6B0rhj0qh/z/UXGQU6iVD5R4pVW62AcKRh/p1gA0Ipq52RM4w6R8mtUQou+SOj0e+MhzcZPP1jR7grIWu52AaacBIchBuSRNu0UK6lmz5rSLJsMwsXiDp1laIEjPMeSUe3Yd50z3pS+GLygteSItLN9QB/8oMDyZbMhmImcdBDthugtd16tqfUGueKnqP5t0sinVSgTNosjWkUzHJCPjGomVon96QKjhZLDc0=
distributions: sdist bdist_wheel
on:
tags: true
python: "2.7"

0 comments on commit a02c5bd

Please sign in to comment.