Update pre-commit hook charliermarsh/ruff-pre-commit to v0.9.3 #42
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Template Workflows | |
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 ci flow | |
uses: cvxgrp/cradle/actions/flow@main | |
with: | |
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 |