Skip to content

Commit

Permalink
chore: moved deploy to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 23, 2024
1 parent e9c214c commit 072354d
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 9 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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: |
pip install black
black . --check
if: matrix.python-version == '3.12'
- 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 }}
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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,
"3.10",
"3.11",
"3.12",
latest,
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: |
pip install black
black . --check
if: matrix.python-version == '3.12'
- run: python setup.py test
build-pypy:
name: Build PyPy
strategy:
matrix:
python-version: [2.7, 3.6, 3.9, "3.10"]
runs-on: ubuntu-latest
container: pypy:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- run: pypy --version
- run: pip install -r requirements.txt
- run: |
pip install black
black . --check
if: matrix.python-version == '3.12'
- run: pypy setup.py test
10 changes: 1 addition & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,4 @@ install:
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pip install coveralls; fi
script: if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage run --source=logstash 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: U4djlzOR2AUhqWed27aViTNfqs+ENq1/lt+fJNNJ2QUo6gRHPzlkJLRJ6HSRvFAd7bhF0qh1/AjQZG8R0GkOT4Jmh+EjxtnsY2k2QTz7UmPmBTPbGXuWS3zEGh7/ub4SDXzJOUxthwhgeeVIbyvLXPJnfRzq9wReqXkUfEA8nHHCD5v/J9v+SDA35aCVBNfKczcpEZVByj2VStTPzOpca8pTnhs+eb+h/e2IKBC+oSwiy846I2r695fvYHCXSwjAPbr1rteqPMo3fz0+HQAz+6ll1hVM9Xo2r327cd6m4HIn0fyUYla5pITHp8zK4OQbYZgtLYjAGzD7Nl0oMzo2pkdGK2/iB31OYsCeJKJMIKAcej0JMjzO/jtYfZa9i1yhKcdkmIS4Ld+LRSD5HHWzPNUijLlwMBaY5jhIXFrSPG/U3GFY52X26Fa9pJ++vmggJotECVSb5gCLsvDF21gJdD3ofsVBTP3LUXbUkkb4poR+Qk0BYmvJ6nHPEU1tB28Q5zi/yhr93V0yEeii89SjTvFEvdnVOhooEAOKE6m4+E/r9r8w2Xu2FW1nwLpxteJlZ+G2H5gEY5UA/MWVBDWiCb0FD8e0FwpmO0/vIjky3DyWd/BbK8sTUySTbqjbCfcUFE94UWr/CS9McM24SSCYwkxA+eqBrbYAxCHMInY5UD0=
distributions: sdist bdist_wheel
on:
tags: true
python: "2.7"

0 comments on commit 072354d

Please sign in to comment.