Skip to content

Commit

Permalink
pdate ci
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnv1 committed Jan 29, 2024
1 parent 6b52173 commit dd4c5cd
Showing 1 changed file with 9 additions and 48 deletions.
57 changes: 9 additions & 48 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
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
Expand Down

0 comments on commit dd4c5cd

Please sign in to comment.