Skip to content

Commit

Permalink
Merge pull request #98 from andreped/tf-fix
Browse files Browse the repository at this point in the history
Fixed tensorflow-datasets protobuf issue [no ci]
  • Loading branch information
andreped authored May 10, 2023
2 parents 6a97262 + 289fc6f commit 0bc538c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
matrix:
os: [windows-2019, ubuntu-20.04, macos-11]
python-version: ["3.8", "3.9", "3.10"]
tf-version: [2.8, 2.11.1]
tf-version: [2.8, 2.12]

steps:
- uses: actions/checkout@v1
Expand All @@ -60,10 +60,17 @@ 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
shell: bash

- name: Download artifact
uses: actions/download-artifact@master
Expand Down

0 comments on commit 0bc538c

Please sign in to comment.