diff --git a/.github/workflows/act.yml b/.github/workflows/act.yml index c0b8b66..408ade7 100644 --- a/.github/workflows/act.yml +++ b/.github/workflows/act.yml @@ -42,6 +42,18 @@ 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: Test pre-commit flow + uses: cvxgrp/cradle/actions/flow@main + with: + working-directory: template + workflow: pre-commit.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..4f5a469 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,6 @@ jobs: - name: Checkout [${% raw %}{{ github.repository }}{% endraw %}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/book@v2.0.5 + - name: Upload the book + if: ${% raw %}{{ env.ACT != 'true' }}{% endraw %} # Skip if running with 'act' + uses: cvxgrp/.github/actions/book@v2.0.6 diff --git a/template/.github/workflows/pre-commit.yml.jinja b/template/.github/workflows/pre-commit.yml.jinja index 4dcbb9e..a6a38a9 100644 --- a/template/.github/workflows/pre-commit.yml.jinja +++ b/template/.github/workflows/pre-commit.yml.jinja @@ -9,21 +9,18 @@ permissions: jobs: test: - 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/coverage@v2.0.5 + - uses: cvxgrp/.github/actions/uv/coverage@v2.0.6 with: source-folder: src/{{ project_name }} tests-folder: src/tests - name: Coveralls GitHub Action + if: ${% raw %}{{ env.ACT != 'true' }}{% endraw %} # Skip if running with 'act' uses: coverallsapp/github-action@v2 with: files: artifacts/tests/coverage/coverage.info @@ -35,7 +32,7 @@ jobs: - name: Checkout [${% raw %}{{ github.repository }}{% endraw %}] uses: actions/checkout@v4 - - uses: cvxgrp/.github/actions/uv/deptry@v2.0.5 + - uses: cvxgrp/.github/actions/uv/deptry@v2.0.6 with: source-folder: src/{{ project_name }}