Skip to content

Commit

Permalink
Install tf-datasets differently for different tf versions in tests CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed May 9, 2023
1 parent a5300c8 commit cb348c2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,16 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install wheel setuptools flake8 pytest-cov

- name: Install tensorflow-datasets
run: |
pip install wheel setuptools flake8 pytest-cov
pip install tensorflow==${{ matrix.tf-version }} "tensorflow-datasets<=4.8.2"
pip install "protobuf<=3.20" --force-reinstall
if [[ ${{ matrix.tf-version }} == 2.12 ]]; then
pip install tensorflow-datasets --upgrade
else
pip install tensorflow==${{ matrix.tf-version }} "tensorflow-datasets<=4.8.2"
pip install "protobuf<=3.20" --force-reinstall
fi
- name: Download artifact
uses: actions/download-artifact@master
Expand Down

0 comments on commit cb348c2

Please sign in to comment.