@@ -40,10 +40,24 @@ jobs:
40
40
- name : Lint with yamllint
41
41
run : |
42
42
yamllint .
43
- - name : Install deploy dependencies
43
+ - name : Validate package version file
44
+ # the package version file has to be always up to date as mip is using
45
+ # the file directly from the repo. On a PyPi package the version file
46
+ # is updated and then packed
44
47
run : |
45
- python -m pip install --upgrade pip
46
- if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
48
+ changelog2version \
49
+ --changelog_file changelog.md \
50
+ --version_file umodbus/version.py \
51
+ --version_file_type py \
52
+ --validate \
53
+ --debug
54
+ - name : Validate mip package file
55
+ run : |
56
+ upy-package \
57
+ --setup_file setup.py \
58
+ --package_changelog_file changelog.md \
59
+ --package_file package.json \
60
+ --validate
47
61
- name : Execute tests
48
62
run : |
49
63
docker build --tag micropython-test --file Dockerfile.tests .
@@ -59,22 +73,14 @@ jobs:
59
73
- name : Run Client/Host RTU test
60
74
run : |
61
75
docker compose -f docker-compose-rtu-test.yaml up --build --exit-code-from micropython-host
76
+ - name : Install deploy dependencies
77
+ run : |
78
+ python -m pip install --upgrade pip
79
+ if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
62
80
- name : Build package
63
81
run : |
64
- changelog2version \
65
- --changelog_file changelog.md \
66
- --version_file umodbus/version.py \
67
- --version_file_type py \
68
- --debug
69
82
python setup.py sdist
70
83
rm dist/*.orig
71
84
- name : Test built package
72
85
run : |
73
86
twine check dist/*
74
- - name : Validate mip package file
75
- run : |
76
- upy-package \
77
- --setup_file setup.py \
78
- --package_changelog_file changelog.md \
79
- --package_file package.json \
80
- --validate
0 commit comments