forked from kornia/kornia
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (58 loc) · 1.99 KB
/
pr_test_cpu.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
63
64
65
66
67
68
69
70
name: Tests on CPU (PR)
on:
push:
branches: [test-me-*]
pull_request:
branches: [main]
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
tests-cpu:
strategy:
fail-fast: true
matrix:
os: ['Ubuntu-latest', 'Windows-latest', 'MacOS-latest']
pytorch-dtype: ['float32', 'float64']
exclude:
- os: 'Windows-latest'
pytorch-dtype: 'float64'
- os: 'MacOS-latest'
pytorch-dtype: 'float64'
uses: kornia/workflows/.github/workflows/[email protected]
with:
os: ${{ matrix.os }}
python-version: '["3.8", "3.11"]'
pytorch-version: '["1.9.1", "2.2.2"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
coverage:
uses: kornia/workflows/.github/workflows/[email protected]
typing:
uses: kornia/workflows/.github/workflows/[email protected]
tutorials:
uses: kornia/workflows/.github/workflows/[email protected]
docs:
uses: kornia/workflows/.github/workflows/[email protected]
collector:
needs: [coverage, tests-cpu, tutorials, typing, docs]
if: always()
runs-on: ubuntu-latest
steps:
- name: check for failures
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: echo job failed && exit 1
tests-nightly:
if: contains(github.event.pull_request.labels.*.name, 'nightly')
name: ${{ matrix.os }} - torch-nightly, ${{ matrix.pytorch-dtype }}
strategy:
fail-fast: false
matrix:
os: ['Ubuntu-latest', 'Windows-latest'] #, 'MacOS-latest'] add it when https://github.com/pytorch/pytorch/pull/89262 be merged
pytorch-dtype: ['float32', 'float64']
uses: kornia/workflows/.github/workflows/[email protected]
with:
os: ${{ matrix.os }}
pytorch-version: '["nightly"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}