From dd4c5cd3e72ee3e62f179927c136401a96901984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Gustavo=20A=2E=20Amorim?= Date: Sun, 28 Jan 2024 09:23:05 -0300 Subject: [PATCH] pdate ci --- .github/workflows/build.yml | 57 ++++++------------------------------- 1 file changed, 9 insertions(+), 48 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9968617..758ec4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,71 +14,32 @@ concurrency: jobs: test: - name: Run tutorials - ${{ matrix.os }}, ${{ matrix.python-version }}, ${{ matrix.pytorch-version }} - runs-on: ${{ matrix.os }}-latest - strategy: - fail-fast: false matrix: - os: ['Ubuntu'] - python-version: ['3.8', '3.10'] - pytorch-version: ['2.0.1'] - - steps: - - uses: actions/checkout@v3 - - - name: Setup environment - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install pytorch - shell: bash - run: pip install torch==${{ matrix.pytorch-version }} torchvision --index-url https://download.pytorch.org/whl/cpu - - - - name: Install dependencies - shell: bash -l {0} - run: | - pip install -r requirements.txt --upgrade - pip install -r requirements-dev.txt --upgrade - - - name: Check deps - shell: bash -l {0} - run: make check-deps + kornia-ref: ['main'] # TODO: coverage check through multiple versions: , 'v0.7.1', 'v0.7.0'] - - name: Generate tutorials - shell: bash -l {0} - run: make generate - - - name: Run tutorials - shell: bash -l {0} - run: make execute + uses: kornia/workflows/.github/workflows/tutorials.yml@v1.4.0 + with: + ref: ${{ matrix.kornia-ref }} build: needs: test - name: Build tutorials - ${{ matrix.os }}, ${{ matrix.python-version }}, ${{ matrix.pytorch-version }} + name: Build tutorials runs-on: ${{ matrix.os }}-latest strategy: matrix: - os: ['Ubuntu'] - python-version: ['3.10'] - pytorch-version: ['2.0.1'] + os: ['ubuntu'] + kornia-ref: ['main'] steps: - - uses: actions/checkout@v3 - - - name: Setup conda dependencies - uses: conda-incubator/setup-miniconda@v2 + - uses: kornia/workflows/.github/actions/env@v1.4.0 with: - auto-update-conda: true - python-version: ${{ matrix.python-version }} + ref: ${{ matrix.kornia-ref }} - name: Install dependencies shell: bash -l {0} run: | - conda install pytorch=${{ matrix.pytorch-version }} torchvision cpuonly -c pytorch pip install -r requirements.txt --upgrade pip install -r requirements-dev.txt --upgrade