Merge pull request #6788 from LMFDB/main #9
This file contains hidden or 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: Generate Snippet Code Files | |
| on: | |
| push: | |
| paths: | |
| - '**/code*.yaml' | |
| jobs: | |
| snippet-generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 # Or a specific version | |
| - name: Set up environment | |
| uses: ./.github/actions/snippet_setup | |
| - name: Generate snippets | |
| if: matrix.files != 'lint' | |
| shell: bash -l {0} | |
| run: | | |
| sage -python lmfdb/tests/generate_snippet_tests.py generate -i magma | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| commit-message: snippet code test files generated by action | |
| title: Code snippets from snippet-generate action | |
| body: This is an auto-generated PR with code snippets from yaml files | |
| labels: code snippets, automated pr |