Skip to content

Commit

Permalink
Bump version to 0.3.0.dev3 (#903)
Browse files Browse the repository at this point in the history
* Bump version to 0.3.0.dev3

* Bound transformers version to pass CI

* Fix CI timeout error

Co-authored-by: Suqi Sun <suqi.sun@petuum.com>
  • Loading branch information
mylibrar and Suqi Sun committed Nov 5, 2022
1 parent 9bdad13 commit 19b9c79
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
- python-version: 3.9
torch-version: 1.8.1
tensorflow-version: 2.5.0
notebook-details:
- { dep: "huggingface nltk", extra: "'tensorflow>=2.5.0,<2.8.0,termcolor>=1.1.0'"}
env:
notebook-details-dep: "huggingface nltk"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -101,15 +101,19 @@ jobs:
run: |
codecov
- name: Test notebook tutorials with installing Fortex
if: ${{ contains(fromJson('["1.5.0", "1.7.1"]'), matrix.torch-version) }}
run: |
git clone https://github.com/asyml/forte-wrappers.git
cd forte-wrappers
for d in ${{ env.notebook-details-dep }}; do pip install "src/"$d; done
cd ..
if [ ${{ matrix.torch-version }} == "1.5.0" ]
then
git clone https://github.com/asyml/forte-wrappers.git
cd forte-wrappers
for d in ${{ matrix.notebook-details.dep }}; do pip install "src/"$d; done
cd ..
pip install --progress-bar off .[data_aug,ir,remote,audio_ext,stave,models,test,wikipedia,nlp,extractor]
coverage run -m pytest tests/forte/notebooks --ignore=tests/forte/notebooks/ocr_test.py
coverage run -m pytest tests/forte/notebooks --ignore=tests/forte/notebooks/ocr_test.py --ignore=tests/forte/notebooks/tutorial_MT_with_forte_test.py
fi
if [ ${{ matrix.torch-version }} == "1.7.1" ]
then
coverage run -m pytest tests/forte/notebooks/tutorial_MT_with_forte_test.py
fi
test_ocr_example:
Expand Down
2 changes: 1 addition & 1 deletion forte/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

_MAJOR = "0"
_MINOR = "3"
_REVISION = "0.dev2"
_REVISION = "0.dev3"

VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
VERSION = "{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
],
extras_require={
"data_aug": [
"transformers>=4.15.0",
"transformers>=4.15.0, <=4.22.2",
"nltk",
"texar-pytorch>=0.1.4",
"requests",
Expand Down

0 comments on commit 19b9c79

Please sign in to comment.