File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,20 @@ jobs:
10
10
unittest :
11
11
strategy :
12
12
matrix :
13
- python-version : [3.7, 3.8, 3.9]
14
- platform : [ubuntu-18.04]
15
13
include :
14
+ # TODO: uncomment this when torch.1-10 is released
15
+ # - python-version: 3.9
16
+ # platform: macos-latest
17
+ # TODO: remove this when torch.1-10 is released
18
+ - python-version : 3.7
19
+ platform : ubuntu-18.04
20
+ torch-whl : https://download.pytorch.org/whl/test/cu113/torch-1.10.0%2Bcu113-cp37-cp37m-linux_x86_64.whl
21
+ - python-version : 3.8
22
+ platform : ubuntu-18.04
23
+ torch-whl : https://download.pytorch.org/whl/test/cu113/torch-1.10.0%2Bcu113-cp38-cp38-linux_x86_64.whl
16
24
- python-version : 3.9
17
- platform : macos-latest
25
+ platform : ubuntu-18.04
26
+ torch-whl : https://download.pytorch.org/whl/test/cu113/torch-1.10.0%2Bcu113-cp39-cp39-linux_x86_64.whl
18
27
fail-fast : false
19
28
runs-on : ${{ matrix.platform }}
20
29
steps :
30
39
set -eux
31
40
pip install coverage codecov
32
41
pip install -e .[dev]
42
+ pip uninstall -y torch
43
+ pip install ${{ matrix.torch-whl }}
33
44
- name : Run tests
34
45
run : coverage run -m unittest discover --verbose --start-directory . --pattern "*_test.py"
35
46
- name : Coverage
Original file line number Diff line number Diff line change @@ -14,6 +14,16 @@ WORKDIR /app
14
14
COPY dev-requirements.txt /app
15
15
RUN pip install -r dev-requirements.txt
16
16
17
+ # TODO: Remove this and get dependency on torch 1.10 when it is released
18
+
19
+ RUN pip uninstall -y torch
20
+
21
+ RUN pip install https://download.pytorch.org/whl/test/cu113/torch-1.10.0%2Bcu113-cp37-cp37m-linux_x86_64.whl
22
+
23
+ RUN pip uninstall -y torchtext
24
+
25
+ RUN pip install https://download.pytorch.org/whl/test/torchtext-0.10.0-cp37-cp37m-linux_x86_64.whl
26
+
17
27
COPY . /app
18
28
19
29
RUN python setup.py install
You can’t perform that action at this time.
0 commit comments