Skip to content

Commit

Permalink
Merge pull request #1 from SolarEdgeTech/flask-extension
Browse files Browse the repository at this point in the history
Publish a flask-extension for setting up Pyctator with a Flask application
  • Loading branch information
Michael Yakobi authored Oct 24, 2021
2 parents 9d5a3d9 + a219f35 commit 9dbe6cd
Show file tree
Hide file tree
Showing 13 changed files with 2,165 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/python_package_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow will install dependencies, build flask-pyctuator and run mypy and pylint

name: build

on:
push:
pull_request:

jobs:
run_image:
runs-on: [ubuntu-18.04]
container:
image: matanrubin/python-poetry:3.7

steps:
- uses: actions/checkout@v2
- run: make bootstrap
- run: poetry build -vvv

- run: poetry install
- run: make check
20 changes: 20 additions & 0 deletions .github/workflows/python_package_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Publishes the flask-pyctuator module to pypi

name: publish

on:
release:
types: [published]

jobs:
run_image:
runs-on: [ubuntu-18.04]
container:
image: matanrubin/python-poetry:3.7

steps:
- uses: actions/checkout@v2
- run: make bootstrap
- run: poetry update -vvv
- run: poetry build -vvv
- run: poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
Loading

0 comments on commit 9dbe6cd

Please sign in to comment.