Skip to content

Update version in pyproject.toml #28

Update version in pyproject.toml

Update version in pyproject.toml #28

Workflow file for this run

# for non-poetry users
name: Update requirements.txt
on:
push:
paths:
- 'poetry.lock'
- 'pyproject.toml'
defaults:
run:
shell: bash # snok/install-poetry requirement
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- uses: actions/checkout@v2
- name: Load cached Poetry installation
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-0 # increment to reset cache
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-in-project: true
- name: Update requirements.txt
run: |
poetry export -f requirements.txt -o requirements.txt --without-hashes
poetry export -f requirements.txt -o requirements-dev.txt --without-hashes --dev
- uses: EndBug/add-and-commit@v9
with:
add: 'requirements.txt requirements-dev.txt'
message: 'Updated requirements.txt'
default_author: github_actions