From 8b9336066d92df5188e34659b4fbd7897c118dd5 Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Sat, 18 Jan 2025 07:53:51 +0400 Subject: [PATCH] testing the book --- .github/workflows/act.yml | 6 ++++++ template/.github/workflows/book.yml.jinja | 26 ++++++++--------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/act.yml b/.github/workflows/act.yml index c0b8b66..1370fdd 100644 --- a/.github/workflows/act.yml +++ b/.github/workflows/act.yml @@ -42,6 +42,12 @@ jobs: working-directory: template workflow: ci.yml + - name: Test book flow + uses: cvxgrp/cradle/actions/flow@main + with: + working-directory: template + workflow: book.yml + #- name: Run the pre-commit flow # id: flow_pre_commit # shell: bash diff --git a/template/.github/workflows/book.yml.jinja b/template/.github/workflows/book.yml.jinja index b3fe897..6d31402 100644 --- a/template/.github/workflows/book.yml.jinja +++ b/template/.github/workflows/book.yml.jinja @@ -4,33 +4,29 @@ on: - push +permissions: + checks: write + contents: read + jobs: marimo: - permissions: - checks: write - contents: write - runs-on: "ubuntu-latest" steps: - name: Checkout [${% raw %}{{ github.repository }}{% endraw %}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/marimo@v2.0.5 + - uses: cvxgrp/.github/actions/uv/marimo@v2.0.6 with: source_folder: book/marimo pdoc: - permissions: - checks: write - contents: write - runs-on: "ubuntu-latest" steps: - name: Checkout [${% raw %}{{ github.repository }}{% endraw %}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/pdoc@v2.0.5 + - uses: cvxgrp/.github/actions/uv/pdoc@v2.0.6 with: source-folder: src/{{ project_name }} @@ -41,22 +37,18 @@ jobs: - name: Checkout [${% raw %}{{ github.repository }}{% endraw %}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/coverage@v2.0.5 + - uses: cvxgrp/.github/actions/uv/coverage@v2.0.6 with: tests-folder: src/tests source-folder: src/{{ project_name }} jupyter: - permissions: - checks: write - contents: write - runs-on: "ubuntu-latest" steps: - name: Checkout [${% raw %}{{ github.repository }}{% endraw %}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/jupyter@v2.0.5 + - uses: cvxgrp/.github/actions/uv/jupyter@v2.0.6 book: runs-on: "ubuntu-latest" @@ -69,4 +61,4 @@ jobs: - name: Checkout [${% raw %}{{ github.repository }}{% endraw %}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/book@v2.0.5 + - uses: cvxgrp/.github/actions/book@v2.0.6