Ensure versions are aligned between freqtrade and freqtrade_client

This commit is contained in:
Matthias
2024-03-29 10:03:15 +01:00
parent f0e0957579
commit 0c026f950b
2 changed files with 21 additions and 0 deletions

View File

@@ -108,6 +108,10 @@ jobs:
run: |
ruff check --output-format=github .
- name: Check for version alignment
run: |
build_helpers/freqtrade_client_version_align.py
- name: Mypy
run: |
mypy freqtrade scripts tests

View File

@@ -0,0 +1,17 @@
from freqtrade_client import __version__ as client_version
from freqtrade import __version__ as ft_version
def main():
if ft_version != client_version:
print(f"Versions do not match: \n"
f"ft: {ft_version} \n"
f"client: {client_version}")
exit(1)
print(f"Versions match: ft: {ft_version}, client: {client_version}")
exit(0)
if __name__ == '__main__':
main()