Skip to content

Commit f707a77

Browse files
authored
Merge pull request #4 from SolarEdgeTech/yanay_add_action_publish_to_pypi
Add github action: publish to pypi
2 parents 3b677a0 + bd342e3 commit f707a77

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This workflow will build Pyctuator, and publish it to pypi.org
2+
3+
name: publish
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
run_image:
11+
runs-on: [ubuntu-18.04]
12+
container:
13+
image: matanrubin/python-poetry:3.7
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: cd ..
18+
- run: make bootstrap
19+
- run: poetry update -vvv
20+
- run: poetry build -vvv
21+
- run: poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test:
1919
poetry run pytest --log-cli-level=4 --tb=no -v tests
2020

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

2424
pylint:
2525
poetry run pylint --exit-zero pyctuator tests

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
![build](https://github.com/SolarEdgeTech/pyctuator/workflows/build/badge.svg)
2-
![codecov](https://codecov.io/gh/SolarEdgeTech/pyctuator/branch/master/graph/badge.svg)
1+
[![PyPI](https://img.shields.io/pypi/v/pyctuator?color=green&style=plastic)](https://pypi.org/project/pyctuator/)
2+
[![build](https://github.com/SolarEdgeTech/pyctuator/workflows/build/badge.svg)](https://github.com/SolarEdgeTech/pyctuator/)
3+
[![Codecov](https://img.shields.io/codecov/c/github/SolarEdgeTech/pyctuator?style=plastic)](https://codecov.io/gh/SolarEdgeTech/pyctuator)
34

45
# Pyctuator
56

0 commit comments

Comments
 (0)