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
21 changes: 21 additions & 0 deletions .github/workflows/python_package_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow will build Pyctuator, and publish it to pypi.org

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: cd ..
- run: make bootstrap
- run: poetry update -vvv
- run: poetry build -vvv
- run: poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test:
poetry run pytest --log-cli-level=4 --tb=no -v tests

coverage:
poetry run pytest --cov-report xml:./cov.xml --cov-report html --cov-report term --cov=pyctuator --log-cli-level=4 --tb=no -v tests
poetry run pytest --cov-report xml:./coverage.xml --cov-report html --cov-report term --cov=pyctuator --log-cli-level=4 --tb=no -v tests

pylint:
poetry run pylint --exit-zero pyctuator tests
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
![build](https://github.com/SolarEdgeTech/pyctuator/workflows/build/badge.svg)
![codecov](https://codecov.io/gh/SolarEdgeTech/pyctuator/branch/master/graph/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/pyctuator?color=green&style=plastic)](https://pypi.org/project/pyctuator/)
[![build](https://github.com/SolarEdgeTech/pyctuator/workflows/build/badge.svg)](https://github.com/SolarEdgeTech/pyctuator/)
[![Codecov](https://img.shields.io/codecov/c/github/SolarEdgeTech/pyctuator?style=plastic)](https://codecov.io/gh/SolarEdgeTech/pyctuator)

# Pyctuator

Expand Down