CI: Use kornia/workflows
#397
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: Tutorials | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master, test-me-*] | |
pull_request: | |
schedule: | |
- cron: "0 4 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
matrix: | |
kornia-ref: ['main'] # TODO: coverage check through multiple versions: , 'v0.7.1', 'v0.7.0'] | |
uses: kornia/workflows/.github/workflows/[email protected] | |
with: | |
ref: ${{ matrix.kornia-ref }} | |
build: | |
needs: test | |
name: Build tutorials | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: ['ubuntu'] | |
kornia-ref: ['main'] | |
steps: | |
- uses: kornia/workflows/.github/actions/[email protected] | |
with: | |
ref: ${{ matrix.kornia-ref }} | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
pip install -r requirements.txt --upgrade | |
pip install -r requirements-dev.txt --upgrade | |
- uses: quarto-dev/quarto-actions/setup@v2 | |
- name: Check deps | |
shell: bash -l {0} | |
run: make check-deps | |
- name: Render Quarto Project | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
to: html | |
path: . |