Ensure no upper bound constraints on dependencies (#327)

这个提交包含在:
Simon Alibert
2024-07-18 12:07:15 +02:00
提交者 GitHub
父节点 8865e19c12
当前提交 ee200e86cb
共有 4 个文件被更改,包括 253 次插入 和 228 次删除

查看文件

@ -54,3 +54,31 @@ jobs:
- name: Poetry check
run: poetry check
poetry_relax:
name: Poetry relax
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Install poetry-relax
run: poetry self add poetry-relax
- name: Poetry relax
id: poetry_relax
run: |
output=$(poetry relax --check 2>&1)
if echo "$output" | grep -q "Proposing updates"; then
echo "$output"
echo ""
echo "Some dependencies have caret '^' version requirement added by poetry by default."
echo "Please replace them with '>='. You can do this by hand or use poetry-relax to do this."
exit 1
else
echo "$output"
fi