Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

feat: include refactor for pylint (WIP, a few remains to be done) #12

feat: include refactor for pylint (WIP, a few remains to be done)

feat: include refactor for pylint (WIP, a few remains to be done) #12

name: Export Requirements
on:
pull_request:
types: [opened, ready_for_review]
push:
jobs:
export:
runs-on: ubuntu-latest
name: Export dependencies
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Poetry
run: |
pipx install poetry==1.7.1
pipx inject poetry poetry-plugin-export
poetry config warnings.export false
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.12
cache: 'poetry'
- name: Export dependencies
run: |
poetry export -f requirements.txt -o requirements/requirements.txt
poetry export -f requirements.txt --with dev -o requirements/requirements-dev.txt
poetry export -f requirements.txt --with docs -o requirements/requirements-docs.txt
- name: Commit changes
run: |
if [[ `git status --porcelain` ]]; then
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "deps: update requirements-*.txt files"
git push
else
echo "No changes were detected. Exiting + Thank you for push."
fi
shell: bash