Skip to content

Commit

Permalink
Test tf 2.15.0 CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed Jan 21, 2024
1 parent fbd93a1 commit d9a058f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,45 @@ jobs:

- name: Run tests
run: pytest -v tests/test_model_expected_result.py

tf-2.15:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ["3.9", "3.10", "3.11"]
tf-version: ["2.15.0"]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

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

- name: Install tensorflow-datasets
run: |
pip install tensorflow==${{ matrix.tf-version }} "tensorflow-datasets<=4.8.2"
pip install "protobuf<=3.20" --force-reinstall
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: "Python wheel"

- name: Install wheel
run: pip install --find-links=. gradient_accumulator-*
shell: bash

- name: Debug pip deps
run: pip list

- name: Test library accessibility
run: python -c "from gradient_accumulator import GradientAccumulateModel, GradientAccumulateOptimizer"

- name: Run tests
run: pytest -v tests/test_model_expected_result.py

0 comments on commit d9a058f

Please sign in to comment.