Skip to content

Commit

Permalink
Merge pull request #5 from grobbles/bugfix/fix_release_pipeline
Browse files Browse the repository at this point in the history
fix release pipeline
  • Loading branch information
grobbles committed May 27, 2022
2 parents ee449a0 + 8a20061 commit 3c31e52
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: CI / CD
name: CI/CD Release

on:
push:
branches:
- main
- release
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build-and-publish:
Expand Down Expand Up @@ -65,7 +64,6 @@ jobs:
skip_existing: true

- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI / CD
name: CI/CD Test

on: [ push, pull_request ]

Expand Down
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Smart Signals

![Build](https://github.com/grobbles/SmartSignals/actions/workflows/build.yml/badge.svg)
![Build](https://github.com/grobbles/SmartSignals/actions/workflows/test.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![codecov](https://codecov.io/gh/grobbles/SmartSignals/branch/main/graph/badge.svg?token=GAHKYKS1SD)](https://codecov.io/gh/grobbles/SmartSignals)
[![codecov](https://codecov.io/gh/grobbles/SmartSignals/branch/main/graph/badge.svg?token=GAHKYKS1SD)](https://codecov.io/gh/grobbles/SmartSignals)

# Install

You can install this package with pip from PyPi.

````bash
pip install SmartSignals
````

# Usage

````python
from smart_signals import *

class Test:
@SmartSignalSlot(str)
def slot(self, message: str):
print(message)
pass

test = Test()
signal = SmartSignal(str)
signal.connect(test.slot)
signal.emit("message")
````

0 comments on commit 3c31e52

Please sign in to comment.