Files
wehub-resource-sync 3a2c66702c
Tests on CPU (scheduled) / check-skip (push) Has been cancelled
Tests on CPU (scheduled) / pre-tests (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-ubuntu (float32) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-ubuntu (float64) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.11, float32, 2.5.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.11, float32, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.11, float64, 2.5.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.11, float64, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.12, float32, 2.5.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.12, float32, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.12, float64, 2.5.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.12, float64, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.13, float32, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-windows (3.13, float64, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-mac (3.11, float32, 2.5.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-mac (3.11, float32, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-mac (3.12, float32, 2.5.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-mac (3.12, float32, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / tests-cpu-mac (3.13, float32, 2.9.1) (push) Has been cancelled
Tests on CPU (scheduled) / coverage (push) Has been cancelled
Tests on CPU (scheduled) / typing (push) Has been cancelled
Tests on CPU (scheduled) / tutorials (push) Has been cancelled
Tests on CPU (scheduled) / docs (push) Has been cancelled
Lint / TOML Format (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:49:27 +08:00

81 lines
2.0 KiB
YAML

on:
workflow_call:
inputs:
python-version:
required: false
type: string
default: '["3.12"]'
os:
required: false
type: string
default: ubuntu-latest
fail-fast:
required: false
type: boolean
default: false
ref:
required: false
type: string
default: ${{ github.sha }}
permissions:
contents: read
jobs:
tutorials:
runs-on: ${{ inputs.os }}
continue-on-error: true
strategy:
fail-fast: ${{ inputs.fail-fast }}
matrix:
python-version: ${{ fromJSON(inputs.python-version) }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ inputs.ref }}
- name: Set pixi environment name
id: pixi-env
shell: bash
run: echo "name=py$(echo '${{ matrix.python-version }}' | tr -d '.')" >> $GITHUB_OUTPUT
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.9.6
with:
pixi-version: v0.40.0
cache: true
environments: ${{ steps.pixi-env.outputs.name }}
- name: Install kornia
run: pixi run -e ${{ steps.pixi-env.outputs.name }} install
- uses: actions/checkout@v6
with:
repository: "kornia/tutorials"
path: "tutorials-repo/"
- name: Install dependencies
working-directory: ./tutorials-repo/
env:
PIP_NO_CACHE_DIR: "1"
PIP_INDEX_URL: "https://download.pytorch.org/whl/cpu"
PIP_EXTRA_INDEX_URL: "https://pypi.org/simple"
run: make setup
- name: Install local kornia
run: pip install -e . --no-deps
- name: Check deps
working-directory: ./tutorials-repo/
run: make check-deps
- name: Generate tutorials
working-directory: ./tutorials-repo/
run: make generate
- name: Run tutorials
working-directory: ./tutorials-repo/
run: make execute