generated from tschm/paper
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.14 KB
/
act.yml
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
49
name: CI
on:
push:
jobs:
test-template-workflows:
strategy:
matrix:
python-version: [ '3.12' ]
runs-on: ubuntu-latest
steps:
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4
- name: Launch the cradle
uses: cvxgrp/cradle/actions/cradle@main
with:
python-version: '3.12'
- name: Run copier
working-directory: .
shell: bash
run: |
copier copy . template --data-file .github/data.yaml
- name: Prepare the repo
working-directory: template
shell: bash
run: |
# otherwise the pre-commit hooks won't "see" files
# also act needs to have the commit in place
git init -b main
git add .
git commit -m "Initial commit"
- name: Test Marimo flow
uses: cvxgrp/cradle/actions/flow@main
with:
working-directory: template
workflow: marimo.yml
- name: Test pre-commit flow
uses: cvxgrp/cradle/actions/flow@main
with:
working-directory: template
workflow: pre-commit.yml