reorder #3
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: Upgrade | ||
on: | ||
workflow_dispatch: null | ||
schedule: | ||
# Every Monday, 7:30 AM (Berlin) | ||
- cron: "30 5 * * 1" | ||
# Backend | ||
jobs: | ||
pip_compile_multi: | ||
if: github.repository == 'maxplanck-ie/parkour2' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: ['3.10', 3.11, 3.12] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
cache: "pip" | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache: "pip" | ||
cache-dependency-path: backend/requirements/testing.txt | ||
python-version: "3.11" | ||
- run: pip install pip-compile-multi | ||
- run: | | ||
mkdir -p backend/requirements/${{ matrix.python-version }} | ||
ls backend/requirements/*.in | cut -d'/' -f3 | rev | cut -d. -f2 | rev | xargs -I{} cp backend/requirements/{}.in backend/requirements/${{ matrix.python-version }}/{}.in | ||
pip-compile-multi -d backend/requirements/${{ matrix.python-version }} --backtracking --autoresolve --allow-unsafe | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r backend/requirements/${{ matrix.python-version }}/testing.txt | ||
- uses: peter-evans/create-pull-request@v6 | ||
with: | ||
branch: create-pull-request/pip-compile-multi | ||
title: Update python dependencies. | ||
body: Update all python dependencies. | ||
delete-branch: true | ||
labels: | | ||
Dependencies | ||
commit-message: | | ||
Update python dependencies. | ||
Run of `pip-compile-multi` to upgrade all python dependencies. | ||
# Frontend (VueJS) | ||
# TODO: see Makefile rule: ncu. |