-
Notifications
You must be signed in to change notification settings - Fork 65
167 lines (167 loc) · 7.55 KB
/
torchbearer.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: pytorchbearer/torchbearer
on:
push:
branches:
- "**/*"
pull_request:
concurrency:
# # This item has no matching transformer
# maximum_number_of_builds: 0
group: "${{ github.ref }}"
cancel-in-progress: true
jobs:
tests:
strategy:
matrix:
include:
- os: ubuntu-20.04
torch_url: torch==0.4.0 -f https://download.pytorch.org/whl/cpu/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
torchvision_url: torchvision==0.2.0 -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 0.4.0
pillow: pillow
python: '3.6.15'
- os: ubuntu-20.04
torch_url: torch==0.4.1 -f https://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
torchvision_url: torchvision==0.2.0 -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 0.4.1
pillow: pillow
python: '3.6.15'
- os: ubuntu-20.04
torch_url: torch==1.0.0 -f http://download.pytorch.org/whl/cpu/torch-1.0.0-cp36-cp36m-linux_x86_64.whl
torchvision_url: torchvision==0.2.2.post3 -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.0.0
pillow: pillow<7.0.0
python: '3.6.15'
- os: ubuntu-20.04
torch_url: torch==1.1.0 http://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl
torchvision_url: https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp36-cp36m-linux_x86_64.whl
torch_version: 1.1.0
pillow: pillow<7.0.0
python: '3.6.15'
- os: ubuntu-20.04
torch_url: torch==1.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.2.0
pillow: pillow<7.0.0
python: '3.6.15'
- os: ubuntu-20.04
torch_url: torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.4.0
pillow: pillow
python: '3.6.15'
- os: ubuntu-latest
torch_url: torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.4.0
pillow: pillow
python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==1.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.5.0
pillow: pillow
python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.6.0
pillow: pillow
python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==1.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.7.0
pillow: pillow
python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==1.8.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.9.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.8.0
pillow: pillow
python: '3.7.17'
# - os: ubuntu-latest
# torch_url: torch==1.9.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
# torchvision_url: torchvision==0.9.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
# torch_version: 1.9.1
# pillow: pillow
# python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==1.10.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.11.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.10.0
pillow: pillow
python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==1.11.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.12.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.11.0
pillow: pillow
python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==1.12.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.13.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.12.0
pillow: pillow
python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==1.13.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.14.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 1.13.0
pillow: pillow
python: '3.7.17'
- os: ubuntu-latest
torch_url: torch==2.0.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.15.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 2.0.0
pillow: pillow
python: '3.8.18'
- os: ubuntu-latest
torch_url: torch==2.1.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torchvision_url: torchvision==0.16.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
torch_version: 2.1.0
pillow: pillow
python: '3.8.18'
runs-on: ${{ matrix.os }}
env:
TORCH_URL: ${{ matrix.torch_url }}
TORCHVISION: ${{ matrix.torchvision_url }}
TORCH_VERSION: ${{ matrix.torch_version }}
PILLOW: ${{ matrix.pillow }}
steps:
- name: checkout
uses: actions/checkout@v4.1.0
- name: Set up pip cache
uses: actions/cache@v3.3.2
with:
path: "~/.cache/pip"
key: "${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}"
restore-keys: "${{ runner.os }}-pip-"
- uses: actions/setup-python@v4.7.0
with:
python-version: ${{ matrix.python }}
- run: echo ${{ github.sha }}_RANGE
- run: 'if [ -z "${{ github.sha }}_RANGE"]; then COMMIT_RANGE="HEAD~..HEAD"; else COMMIT_RANGE=${{ github.sha }}_RANGE; fi;
'
- run: echo $COMMIT_RANGE
- run: |
if ! git diff --name-only $COMMIT_RANGE | grep -qE '^(torchbearer/|tests/|.travis.yml)'
then
echo "Only docs were updated, not running the CI."
exit
fi
- run: pip install -q coverage
- run: pip install -q nose
- run: pip install -q $TORCH_URL
- run: pip install future
- run: pip install $PILLOW
- run: pip install -q $TORCHVISION
- run: pip install -q ipython
- run: pip install -q -r requirements.txt
- run: nosetests tests -v --with-coverage --cover-package=torchbearer
- run: bash <(curl -s https://codecov.io/bash)
if: "${{ success() }}"
# # This item has no matching transformer
# - email:
# on_success: never
# on_failure: always