Skip to content

Commit 19b9c79

Browse files
mylibrarSuqi Sun
andauthored
Bump version to 0.3.0.dev3 (#903)
* Bump version to 0.3.0.dev3 * Bound transformers version to pass CI * Fix CI timeout error Co-authored-by: Suqi Sun <[email protected]>
1 parent 9bdad13 commit 19b9c79

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
- python-version: 3.9
3030
torch-version: 1.8.1
3131
tensorflow-version: 2.5.0
32-
notebook-details:
33-
- { dep: "huggingface nltk", extra: "'tensorflow>=2.5.0,<2.8.0,termcolor>=1.1.0'"}
32+
env:
33+
notebook-details-dep: "huggingface nltk"
3434
steps:
3535
- uses: actions/checkout@v2
3636
- name: Set up Python ${{ matrix.python-version }}
@@ -101,15 +101,19 @@ jobs:
101101
run: |
102102
codecov
103103
- name: Test notebook tutorials with installing Fortex
104+
if: ${{ contains(fromJson('["1.5.0", "1.7.1"]'), matrix.torch-version) }}
104105
run: |
106+
git clone https://github.com/asyml/forte-wrappers.git
107+
cd forte-wrappers
108+
for d in ${{ env.notebook-details-dep }}; do pip install "src/"$d; done
109+
cd ..
105110
if [ ${{ matrix.torch-version }} == "1.5.0" ]
106111
then
107-
git clone https://github.com/asyml/forte-wrappers.git
108-
cd forte-wrappers
109-
for d in ${{ matrix.notebook-details.dep }}; do pip install "src/"$d; done
110-
cd ..
111-
pip install --progress-bar off .[data_aug,ir,remote,audio_ext,stave,models,test,wikipedia,nlp,extractor]
112-
coverage run -m pytest tests/forte/notebooks --ignore=tests/forte/notebooks/ocr_test.py
112+
coverage run -m pytest tests/forte/notebooks --ignore=tests/forte/notebooks/ocr_test.py --ignore=tests/forte/notebooks/tutorial_MT_with_forte_test.py
113+
fi
114+
if [ ${{ matrix.torch-version }} == "1.7.1" ]
115+
then
116+
coverage run -m pytest tests/forte/notebooks/tutorial_MT_with_forte_test.py
113117
fi
114118
115119
test_ocr_example:

forte/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
_MAJOR = "0"
1616
_MINOR = "3"
17-
_REVISION = "0.dev2"
17+
_REVISION = "0.dev3"
1818

1919
VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
2020
VERSION = "{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
],
5555
extras_require={
5656
"data_aug": [
57-
"transformers>=4.15.0",
57+
"transformers>=4.15.0, <=4.22.2",
5858
"nltk",
5959
"texar-pytorch>=0.1.4",
6060
"requests",

0 commit comments

Comments
 (0)