Add weekly schedule triggers for test workflows #25
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: test.yaml | |
| permissions: read-all | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| schedule: | |
| - cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: | | |
| Quarto version, may be "release", "pre-release" or a version number. | |
| required: true | |
| default: 'release' | |
| type: string | |
| tinytex: | |
| description: 'If true, install TinyTex, required for PDF rendering' | |
| required: false | |
| default: 'false' | |
| jobs: | |
| quarto-setup: | |
| runs-on: ${{ matrix.config.os }} | |
| name: ${{ matrix.config.os }} (${{ inputs.version || matrix.version }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ${{ inputs.version && fromJSON(format('["{0}"]', inputs.version)) || fromJSON('["release", "pre-release"]') }} | |
| config: | |
| # Default config for standard platforms | |
| - os: macos-latest | |
| - os: macos-15-intel | |
| - os: windows-latest | |
| tinytex: 'false' | |
| - os: ubuntu-latest | |
| # Special config for ARM | |
| - os: ubuntu-22.04-arm | |
| tinytex: 'false' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./setup | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| version: ${{ matrix.version }} | |
| tinytex: ${{ inputs.tinytex || matrix.config.tinytex || 'true' }} | |
| - run: quarto --version | |
| - run: which quarto | |
| if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }} | |
| - run: where.exe quarto | |
| if: ${{ runner.os == 'Windows' }} | |