Updated tests workflow and changed client version to 0.0.1

pull/266/head
Neeraj Kashyap 2021-09-20 13:42:59 -07:00
rodzic b8ec4f8c50
commit 7000c0f8c9
2 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
name: Lint Moonstream Python client library
name: Linting and tests for the Moonstream Python client library
on:
pull_request:
@ -25,3 +25,12 @@ jobs:
- name: Black syntax check
working-directory: ./clients/python
run: black --check moonstream/
- name: Unit tests
working-directory: ./clients/python
run: python -m unittest discover -v
- name: Check that versions are synchronized
working-directory: ./clients/python
run: |
CLIENT_VERSION=$(python -c "from moonstream.client import CLIENT_VERSION; print(CLIENT_VERSION)")
SETUP_PY_VERSION=$(python setup.py --version)
test "$CLIENT_VERSION" = "$SETUP_PY_VERSION"

Wyświetl plik

@ -13,7 +13,7 @@ logger.setLevel(log_level)
# Keep this synchronized with the version in setup.py
CLIENT_VERSION = "0.1.0"
CLIENT_VERSION = "0.0.1"
def moonstream_endpoints(url: str) -> Dict[str, str]: