File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 60
60
path : ${{ steps.poetry-venvs.outputs.dir }}
61
61
key : poetry-venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
62
62
63
+ - name : Check that the poetry lockfile is up to date
64
+ # This is rather hacky. We look for the warning message in poetry's
65
+ # output. We really want to use `poetry lock --check`, but that is only
66
+ # available in poetry 1.2.
67
+ # https://github.com/python-poetry/poetry/issues/1406
68
+ run : >-
69
+ poetry export --without-hashes | (! grep "The lock file is not up to date") ||
70
+ (echo pyproject.toml was updated without running \`poetry lock --no-update\`. && false)
71
+ shell : bash
72
+
63
73
- name : Install dependencies
64
74
if : " ${{ steps.poetry-venv-cache.outputs.cache-hit != 'true' }}"
65
75
run : poetry install --no-interaction --no-root
You can’t perform that action at this time.
0 commit comments