-
Notifications
You must be signed in to change notification settings - Fork 32
62 lines (50 loc) · 1.37 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 }}
extra-deps: torchvision==0.18.1+cpu
- uses: actions/checkout@v4
with:
repository: 'kornia/tutorials'
path: 'tutorials-repo/'
- name: Install dependencies
working-directory: ./tutorials-repo/
shell: bash -l {0}
run: make setup
- uses: quarto-dev/quarto-actions/setup@v2
- name: Check deps
working-directory: ./tutorials-repo/
shell: bash -l {0}
run: make check-deps
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
to: html
path: ./tutorials-repo/