-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (41 loc) · 1.39 KB
/
sync-demos.yml
File metadata and controls
48 lines (41 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: sync-demo.yml
on:
pull_request:
branches:
- develop
env:
COOKIECUTTER_ROBUST_PYTHON_PROJECT_DEMOS_FOLDER: ${{ github.workspace }}
COOKIECUTTER_ROBUST_PYTHON__DEMOS_CACHE_FOLDER: ${{ github.workspace }}
COOKIECUTTER_ROBUST_PYTHON__APP_AUTHOR: ${{ github.repository_owner }}
ROBUST_PYTHON_DEMO__APP_AUTHOR: ${{ github.repository_owner }}
ROBUST_MATURIN_DEMO__APP_AUTHOR: ${{ github.repository_owner }}
jobs:
update-demo:
name: Update Demo
runs-on: ubuntu-latest
strategy:
matrix:
demo_name:
- "robust-python-demo"
- "robust-maturin-demo"
steps:
- name: Checkout Template
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
path: cookiecutter-robust-python
- name: Checkout Demo
uses: actions/checkout@v4
with:
repository: "${{ github.repository_owner }}/${{ matrix.demo_name }}"
path: ${{ matrix.demo_name }}
ref: develop
- name: Set up uv
uses: astral-sh/setup-uv@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update Demo
working-directory: "${{ github.workspace }}/cookiecutter-robust-python"
run: "uvx nox -s 'update-demo(${{ matrix.demo_name }})' -- --branch-override ${{ github.head_ref }}"