diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d114c7a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.7' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml new file mode 100644 index 0000000..4f6da03 --- /dev/null +++ b/.github/workflows/tox.yml @@ -0,0 +1,21 @@ +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python: [3.6, 3.7] + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install Tox and any other packages + run: pip install tox + - name: Run Tox + # Run tox using the version of Python in `PATH` + run: tox -e python3-cover,report diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d48d143..0000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: python -sudo: false -cache: pip -matrix: - include: - - python: '3.6' - env: - - TOXENV=python3-cover,report -before_install: - - python --version - - uname -a - - lsb_release -a -install: - - pip install tox - - virtualenv --version - - easy_install --version - - pip --version - - tox --version -script: - - tox -v -after_failure: - - more .tox/log/* | cat - - more .tox/*/log/* | cat -notifications: - email: - on_success: never - on_failure: always -deploy: - provider: pypi - user: dreamlab-paas-pypi - password: - secure: Psb4Nnqun4Fa2nokdJDcFznKMCuw550NOesYzgy8/yXIcEOucxOF2TWtdyRGst6YDJ6G0SYGNzGhBmwdRvJdX670Afq5Kqq2s49Wra0xGXTbRBaklxfvDA/kxvm8tvrrbcKPVcOtj2HA009q5f30mEqfeQrnd1WNo/LcgCmu4t7fjpMtbi1VW3mnOa6NzCVvK5KLfwDgJvYyrc8iriOsRbN8WVnrLcRAoKWTIkxb1wBckfnQBiP8bqNSWByerDSAyF0IDEVWQIRiyEompKhjBSRLxpOQqY8njl2lRE5S1YGKunC2ihZGa/QHMbVzDpEdaIGegq7iGEwKEpvp++TZ08wCcQdJ6mJC3xhLNY/0NWjZP129bNOeg51ickvmHLwBfZwEuYpVittuR12nCmLmZJbh8FiMBRjKswofe4+muw6+QzKNQVRb05xURlIHEmRoCEcW87BNEpxMWoLW1XzvoK6qMCbiyWACFMacLZg1s8B4DUb4ZFmd3iQiFOEKAkU1Ez2J/Fiulh9N4jj93pW8CVqC1uOKwoXMlluVTiw3tL525fEdBtecz/c7/4t7MkK4QZXl5yfWWKJJhOU+t4eLaxr6felB4zFHpLOHHuGDunJIdhLkd65WKjAmpNgf8B6/HYzhBePnyeJtVZhS10rTDNoEfhOJxKO11Q0NFbuNlGU= - on: - tags: true - branch: master