Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/requirments-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Sync requirements.txt with pyproject.toml

on:
pull_request:
paths: ['pyproject.toml']
paths: ['poetry.lock']
types: [opened, synchronize, reopened]

permissions:
Expand Down Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Install Poetry
run: pip install poetry

- name: Install Dependencies via Poetry
run: poetry install --only main --no-root

- name: Detect whether requirements.txt has change
id: detect
run: |
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
DOCKER_COMPOSE_CMD := $(shell if command -v docker-compose > /dev/null; then echo "docker-compose"; else echo "docker compose"; fi)


# To regenerate requirements.txt from poetry.lock
# CAVEAT: Using .PHONY to skip Make's dependency check
# of poetry.lock until it is reliable or proven useless
.PHONY: requirements.txt
requirements.txt: poetry.lock
pip install --user poetry-plugin-export \
&& poetry export -f requirements.txt --output requirements.txt \
Expand Down