Launch run (#355) #14
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: Generate requirements.txt for clever branches | |
on: | |
push: | |
branches: | |
- run-clever | |
- dev-clever | |
pull_request: | |
branches: | |
- run-clever | |
- dev-clever | |
jobs: | |
export-requirements: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' # Choose your Python version | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Configure Poetry (no virtualenv) | |
run: poetry config virtualenvs.create false | |
- name: Install dependencies | |
run: poetry install | |
- name: Export requirements.txt | |
run: | | |
poetry export --without-hashes --format=requirements.txt > requirements.txt | |
- run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
- run: git add requirements.txt | |
- run: git commit --m 'generate requirements.txt from poetry' || exit 0 | |
- run: git push |