Bump autopep8 from 2.1.1 to 2.2.0 #22
Workflow file for this run
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
--- | |
name: Update requirements.txt | |
permissions: | |
contents: write | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "pyproject.toml" | |
jobs: | |
update_requirements: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install FFTW | |
run: sudo apt-get update && sudo apt-get install -y libfftw3-dev | |
- name: Install dependencies | |
run: python -m pip install --upgrade poetry | |
- name: Install project dependencies | |
run: python -m poetry update | |
- name: Update requirements.txt | |
run: python -m poetry export --format requirements.txt --output requirements.txt --extras healpy_support --extras pytorch_support --without-hashes | |
- name: Update requirements-dev.txt | |
run: python -m poetry export --with dev --format requirements.txt --output requirements-dev.txt --without-hashes | |
- name: Prepare commit | |
run: sudo chown -Rc $UID .git/ | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Update requirements.txt" | |
commit_user_name: "github-actions" | |
commit_user_email: "github-actions@github.com" | |
commit_author: "github-actions <github-actions@github.com>" | |
branch: ${{ github.head_ref }} |