Skip to content

Generate teams for PyBaMM #15

Generate teams for PyBaMM

Generate teams for PyBaMM #15

Workflow file for this run

# A workflow to run the generate_teams.py script in the CI weekly and create a pull request
name: Generate teams for PyBaMM
on:
schedule:
# Run every Monday at 03:00 AM UTC
- cron: "0 3 * * 1"
workflow_dispatch:
jobs:
generate-teams:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch of repository
uses: actions/checkout@v3
with:
ref: main
submodules: recursive
- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install requirements
run: pip install -r requirements.txt
- name: Run the teams generation script
run: python scripts/generate_teams.py
- name: Run pre-commit hooks
run: |
pip install pre-commit
pre-commit run --all-files
# Will exit silently if there are no changes
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
# Commit details
commit-message: "[create-pull-request] update teams HTML files"
# Pull request details
branch: "create-pull-request/generate-teams"
branch-suffix: timestamp
delete-branch: true
base: "main"
title: "Update teams weekly"
body: "This pull request was automatically created by the CI workflow `teams.yml`."
labels: "auto-generated"
reviewers: |
agriyakhetarpal
Saransh-cpp
tinosulzer
rtimms
draft: false