Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/execute_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Execute tests

on: push

jobs:
execute_tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9']
name: Python ${{ matrix.python-version }} tests
steps:
- uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Print information
run: |
echo "python version $(python --version) running"
echo "pip version $(pip --version) running"

- name: Build
run: |
pip install wheel
python setup.py sdist bdist_wheel

- name: Test
run: |
python setup.py test
40 changes: 40 additions & 0 deletions .github/workflows/push_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Push package to pypi

on:
pull_request:
types:
- closed
branches:
- release

env:
PYTHON_VERSION: "3.9"

jobs:
push_to_pypi:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Print information
run: |
echo "python version $(python --version) running"
echo "pip version $(pip --version) running"

- name: Build
run: |
pip install wheel
python setup.py sdist bdist_wheel

- name: Deploy
env:
PYPI_USERNAME: "${{ secrets.PYPI_USERNAME }}"
PYPI_PASSWORD: "${{ secrets.PYPI_PASSWORD }}"
run: |
sh deploy.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# python-lambda-local

[![Join the chat at https://gitter.im/HDE/python-lambda-local](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/HDE/python-lambda-local?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![wercker status](https://app.wercker.com/status/04f5bc5b7de3d5c6f13eb5b871035226/s "wercker status")](https://app.wercker.com/project/bykey/04f5bc5b7de3d5c6f13eb5b871035226)
[![Github Actions status](https://github.com/HDE/python-lambda-local/actions/workflows/execute_tests.yml/badge.svg)](https://github.com/HDE/python-lambda-local/actions/)
[![PyPI version](https://badge.fury.io/py/python-lambda-local.svg)](https://badge.fury.io/py/python-lambda-local)

Run lambda function on local machine
Expand Down
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
python-lambda-local
===================

|Join the chat at https://gitter.im/HDE/python-lambda-local| |wercker
status| |PyPI version|
|Join the chat at https://gitter.im/HDE/python-lambda-local| |Github Actions status| |PyPI version|

Run lambda function on local machine

Expand Down Expand Up @@ -184,7 +183,7 @@ Sample

.. |Join the chat at https://gitter.im/HDE/python-lambda-local| image:: https://badges.gitter.im/Join%20Chat.svg
:target: https://gitter.im/HDE/python-lambda-local?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
.. |wercker status| image:: https://app.wercker.com/status/04f5bc5b7de3d5c6f13eb5b871035226/s
:target: https://app.wercker.com/project/bykey/04f5bc5b7de3d5c6f13eb5b871035226
.. |Github Actions status| image:: https://github.com/HDE/python-lambda-local/actions/workflows/execute_tests.yml/badge.svg
:target: https://github.com/HDE/python-lambda-local/actions/
.. |PyPI version| image:: https://badge.fury.io/py/python-lambda-local.svg
:target: https://badge.fury.io/py/python-lambda-local
5 changes: 0 additions & 5 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,4 @@ password: ${PYPI_PASSWORD}
EOF

pip install twine

mkdir dist
cp build-py37/dist/* dist/
cp build-py38/dist/* dist/

twine upload -r pypi dist/*
96 changes: 0 additions & 96 deletions wercker.yml

This file was deleted.