diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml new file mode 100644 index 0000000..6352ac4 --- /dev/null +++ b/.github/workflows/pythonapp.yml @@ -0,0 +1,20 @@ +name: Python application + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python setup.py install + diff --git a/README.md b/README.md index 1ee3f2f..797bc67 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # SpaceApiCli +![Python application](https://github.com/reikkaps/spaceapicli/workflows/Python%20application/badge.svg?branch=master) + a simple cmdline tool to access the hackspace-API from the unix console or toolbars like polybar diff --git a/src/SpaceApiCli.py b/src/SpaceApiCli.py index d904f41..b745b7c 100644 --- a/src/SpaceApiCli.py +++ b/src/SpaceApiCli.py @@ -49,10 +49,10 @@ def status(json, verbose): pass if json['state']['open'] is False: - print('🧘 closed'.format(str(json['space']))) + print(' {} is closed'.format(str(json['space']))) return False - print('🌞 open'.format(str(json['space']))) + print(' {} is open'.format(str(json['space']))) return True