kopia lustrzana https://github.com/bugout-dev/moonstream
Updated tests workflow and changed client version to 0.0.1
rodzic
b8ec4f8c50
commit
7000c0f8c9
|
@ -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"
|
||||
|
|
|
@ -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]:
|
||||
|
|
Ładowanie…
Reference in New Issue