Update packages, make github happy #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v2 | |
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 |