mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Ensure versions are aligned between freqtrade and freqtrade_client
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -108,6 +108,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ruff check --output-format=github .
|
ruff check --output-format=github .
|
||||||
|
|
||||||
|
- name: Check for version alignment
|
||||||
|
run: |
|
||||||
|
build_helpers/freqtrade_client_version_align.py
|
||||||
|
|
||||||
- name: Mypy
|
- name: Mypy
|
||||||
run: |
|
run: |
|
||||||
mypy freqtrade scripts tests
|
mypy freqtrade scripts tests
|
||||||
|
|||||||
17
build_helpers/freqtrade_client_version_align.py
Normal file
17
build_helpers/freqtrade_client_version_align.py
Normal 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()
|
||||||
Reference in New Issue
Block a user