Skip to content

Commit 9b2ae82

Browse files
committed
Update build tutorials CI
1 parent 481dcfc commit 9b2ae82

File tree

3 files changed

+43
-41
lines changed

3 files changed

+43
-41
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
matrix:
1919
kornia-ref: ['main'] # TODO: coverage check through multiple versions: , 'v0.7.1', 'v0.7.0']
2020

21-
uses: kornia/workflows/.github/workflows/[email protected].0
21+
uses: kornia/workflows/.github/workflows/[email protected].1
2222
with:
2323
ref: ${{ matrix.kornia-ref }}
2424

@@ -33,24 +33,29 @@ jobs:
3333
kornia-ref: ['main']
3434

3535
steps:
36-
- uses: kornia/workflows/.github/actions/[email protected].0
36+
- uses: kornia/workflows/.github/actions/[email protected].1
3737
with:
3838
ref: ${{ matrix.kornia-ref }}
3939

40+
- uses: actions/checkout@v4
41+
with:
42+
repository: 'kornia/tutorials'
43+
path: 'tutorials-repo/'
44+
4045
- name: Install dependencies
46+
working-directory: ./tutorials-repo/
4147
shell: bash -l {0}
42-
run: |
43-
pip install -r requirements.txt --upgrade
44-
pip install -r requirements-dev.txt --upgrade
48+
run: make setup
4549

4650
- uses: quarto-dev/quarto-actions/setup@v2
4751

4852
- name: Check deps
53+
working-directory: ./tutorials-repo/
4954
shell: bash -l {0}
5055
run: make check-deps
5156

5257
- name: Render Quarto Project
5358
uses: quarto-dev/quarto-actions/render@v2
5459
with:
5560
to: html
56-
path: .
61+
path: ./tutorials-repo/

.github/workflows/deploy.yml

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,38 @@ jobs:
1010
runs-on: ${{ matrix.os }}-latest
1111

1212
strategy:
13-
fail-fast: true
1413
matrix:
15-
os: ['Ubuntu']
16-
python-version: ['3.10']
17-
pytorch-version: ['2.0.1']
14+
os: ['ubuntu']
15+
kornia-ref: ['main']
1816

1917
steps:
20-
- uses: actions/checkout@v3
21-
- name: Setup conda dependencies
22-
uses: conda-incubator/setup-miniconda@v2
23-
with:
24-
auto-update-conda: true
25-
python-version: ${{ matrix.python-version }}
26-
27-
- name: Install dependencies
28-
shell: bash -l {0}
29-
run: |
30-
conda install pytorch=${{ matrix.pytorch-version }} torchvision cpuonly -c pytorch
31-
pip install -r requirements.txt
32-
pip install -r requirements-dev.txt;
33-
34-
- uses: quarto-dev/quarto-actions/setup@v2
35-
36-
- name: Render Quarto Project
37-
uses: quarto-dev/quarto-actions/render@v2
38-
with:
39-
to: html
40-
path: .
41-
42-
- name: Deploy to GitHub Pages
43-
uses: peaceiris/actions-gh-pages@v3
44-
with:
45-
github_token: ${{ secrets.GITHUB_TOKEN }}
46-
force_orphan: true
47-
publish_dir: ./_site
48-
user_name: github-actions[bot]
49-
user_email: 41898282+github-actions[bot]@users.noreply.github.com
18+
- uses: kornia/workflows/.github/actions/[email protected]
19+
with:
20+
ref: ${{ matrix.kornia-ref }}
21+
22+
- uses: actions/checkout@v4
23+
with:
24+
repository: 'kornia/tutorials'
25+
path: 'tutorials-repo/'
26+
27+
- name: Install dependencies
28+
working-directory: ./tutorials-repo/
29+
shell: bash -l {0}
30+
run: make setup
31+
32+
- uses: quarto-dev/quarto-actions/setup@v2
33+
34+
- name: Render Quarto Project
35+
uses: quarto-dev/quarto-actions/render@v2
36+
with:
37+
to: html
38+
path: ./tutorials-repo/
39+
40+
- name: Deploy to GitHub Pages
41+
uses: peaceiris/actions-gh-pages@v3
42+
with:
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
44+
force_orphan: true
45+
publish_dir: ./_site
46+
user_name: github-actions[bot]
47+
user_email: 41898282+github-actions[bot]@users.noreply.github.com

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ setup-quarto:
2323

2424
setup:
2525
pip install -r requirements.txt && pip install -r requirements-dev.txt;
26-
make setup-quarto
2726

2827
preview:
2928
quarto preview .

0 commit comments

Comments
 (0)