File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,17 +26,25 @@ jobs:
2626 uses : actions/setup-python@v5 # https://github.com/actions/setup-python
2727 with :
2828 python-version : ${{ matrix.python-version }}
29- - name : Install dependencies
29+
30+ - name : Install and upgrade core tools
31+ run : |
32+ python -m pip install --upgrade pip
33+ python -m pip install pip-tools
34+
35+ - name : Verify lockfile consistency (diagnostic mode)
3036 run : |
31- python -m pip install --upgrade pip # Upgrade pip to the latest version
32- pip install pip-tools # run pip-compile silently to create requirements.txt in memory
37+ echo "Generating requirements.txt from source to check for differences..."
3338 pip-compile --quiet requirements.in -o requirements.txt
34- # command will exit with error code if there's a diff
35- # git diff --exit-code requirements.txt
36- #
37- # Temporarily changed to diagnostic mode to see the required changes
39+ echo "Comparing the generated file with the one in the repository:"
40+ # 'git diff' will show any diff's. '|| true' ensures the step doesn't fail.
3841 git diff requirements.txt || true
39- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
42+
43+ - name : Install Python dependencies from lockfile
44+ run : |
45+ echo "Installing dependencies from requirements.txt..."
46+ if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
47+
4048 - name : Lint with flake8
4149 run : |
4250 # stop the build if there are Python syntax errors or undefined names
You can’t perform that action at this time.
0 commit comments