Skip to content

Commit 78564b7

Browse files
committed
update CI
1 parent b36cc0a commit 78564b7

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/ci_test-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# max-parallel: 6
1717
matrix:
1818
os: [ubuntu-20.04, windows-2019, macOS-10.15]
19-
python-version: [3.7]
19+
python-version: [3.8]
2020

2121
# Timeout: https://stackoverflow.com/a/59076067/4521646
2222
timeout-minutes: 20

.github/workflows/ci_test-full.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,17 @@ jobs:
5353
- name: Adjust minimal for Python 3.8 and MacOS
5454
if: matrix.requires == 'minimal' && (runner.os == 'macOS' || matrix.python-version == 3.8)
5555
run : |
56-
python -c "fname = 'requirements.txt' ; req = open(fname).read().replace('torch>=1.3', 'torch>=1.4') ; open(fname, 'w').write(req)"
57-
python -c "fname = 'requirements/examples.txt' ; req = open(fname).read().replace('torchvision>=0.4.1', 'torchvision>=0.5.0') ; open(fname, 'w').write(req)"
58-
python -c "fname = 'requirements/extra.txt' ; req = open(fname).read().replace('torchtext>=0.3.1', 'torchtext>=0.5.0') ; open(fname, 'w').write(req)"
56+
python -c "import re ; fname = 'requirements.txt' ; req = re.sub(r'torch>=[\d\.]+', 'torch>=1.4.0', open(fname).read()) ; open(fname, 'w').write(req)"
57+
python -c "import re ; fname = 'requirements/examples.txt' ; req = re.sub(r'torchvision>=[\d\.]+', 'torchvision>=0.5.0', open(fname).read()) ; open(fname, 'w').write(req)"
58+
python -c "import re ; fname = 'requirements/extra.txt' ; req = re.sub(r'torchtext>=[\d\.]+', 'torchtext>=0.5.0', open(fname).read()) ; open(fname, 'w').write(req)"
59+
60+
# versions <= 1.3 may have issues on mac with some BLAS ops due to missing mkl (https://github.com/pytorch/pytorch/issues/18996)
61+
- name: Adjust minimal for Python 3.9
62+
if: matrix.requires == 'minimal' && matrix.python-version == 3.9
63+
run : |
64+
python -c "import re ; fname = 'requirements.txt' ; req = re.sub(r'torch>=[\d\.]+', 'torch>=1.7.1', open(fname).read()) ; open(fname, 'w').write(req)"
65+
python -c "import re ; fname = 'requirements/examples.txt' ; req = re.sub(r'torchvision>=[\d\.]+', 'torchvision>=0.8.2', open(fname).read()) ; open(fname, 'w').write(req)"
66+
python -c "import re ; fname = 'requirements/extra.txt' ; req = re.sub(r'torchtext>=[\d\.]+', 'torchtext>=0.8.1', open(fname).read()) ; open(fname, 'w').write(req)"
5967
6068
- name: Set min. dependencies
6169
if: matrix.requires == 'minimal'

0 commit comments

Comments
 (0)