Skip to content

Commit

Permalink
chore: new deployment strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 20, 2024
1 parent e588e88 commit b72fef0
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 9 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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@v4
- run: python --version
- run: pip install -r requirements.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 }}
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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@v4
- run: python --version
- run: pip install -r requirements.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
- 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 @@ -23,12 +23,3 @@ install:
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pip install coveralls; fi
script: if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage run --source=mailme setup.py test; else python setup.py test; fi
after_success: if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coveralls; fi
deploy:
provider: pypi
user: joamag
password:
secure: neskfevYp0Cobk7kosV+MgfFokY2tOB8Q7OCeS5MOKv/ZnYL3T2pz78NZNLfPfToj8MJ/hv+bOiR/l5e2c23UJdjgIIwkpAGPCTxRqecBHeNQL4Mqgy1B9YcjAKJQUL/JucxcW8piwtXvHiCOZAKt4/wqRrVQGFIJTflelJobcDjpv75hmcS8em03YoFCy3uFRyi/XDy9d7sZVfjSYI7OJQCNBBplmZOdDNWHA/B9u7v2uypZTAdd6+Rk3hmfj5E4LVEvj402F0ojv/++6KPXgnbWq+w9hcqXRH+8yHhxXTnrIX/r0qX26cy1YYx68tBsbGP3/UWs5/GKE7P8vD6QbBHDntXv/eAAdsco2QUl9GHa4kpO5VCQ0pNkxv3a3B1OqJ1aGYhLLlKja+A9hlx6deZKjxBo+YLcaJBgvmZpHgxPRjT4hQbzvB+W2SVekAwxL6SIKJ/5keY2ILGMp0uDINXAlrvz62brHjgPzMsdByGADz4QPyMKjI0cofdgUg0Kv88mqoqC4AdMXpZK/5EuOu28NAkbGdguiwePf14j2kYOlbg4rJNSLMSzXf+acjo7HrhKSGtQD6wtRM2fBnmVEVuDVrpOxTTCNhpK/uaVRiJpQFliD6tU6anJQdX9EIDGXLBTapkSoUIkSVC8p1tJejKGn8rQ+dG675VW1bGKeA=
distributions: sdist bdist_wheel
on:
tags: true
python: "2.7"

0 comments on commit b72fef0

Please sign in to comment.