Skip to content

Update

Update #22

Workflow file for this run

name: Upgrade
on:
workflow_dispatch:
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]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
cache: "pip"
cache-dependency-path: backend/requirements/${{ matrix.python-version }}/testing.txt
python-version: ${{ matrix.python-version }}
- name: Compile dependencies
run: |
mkdir -p backend/requirements/${{ matrix.python-version }}
ls backend/requirements/*.in | cut -d'/' -f3 | rev | cut -d. -f2 | rev | xargs -I{} ln -sf ../{}.in backend/requirements/${{ matrix.python-version }}/{}.in
python -m pip install --upgrade pip
pip install pip-tools pip-compile-multi
pip-compile-multi -d backend/requirements/${{ matrix.python-version }} --backtracking --autoresolve --allow-unsafe
- name: Install dependencies
run: pip install -r backend/requirements/${{ matrix.python-version }}/testing.txt
- name: Create PR
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.