Skip to content

Commit

Permalink
tf versions added to test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje committed Mar 8, 2024
1 parent f9e65c7 commit 306097e
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
tf-version: ["2.10.1", "2.11.1", "2.12.1", "2.13.1", "2.14.1", "2.15.0.post1", "2.16.0rc0"]
fail-fast: false

steps:
Expand All @@ -68,7 +69,7 @@ jobs:
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v03
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install .[dev]
run: pip install ".[dev]" "tensorflow==${{ matrix.tf-version}}"
- run: mkdir coverage
- name: Test
run: bash scripts/test.sh
Expand Down Expand Up @@ -99,22 +100,22 @@ jobs:
- name: Test
run: bash scripts/test.sh

test-windows-latest:
if: github.event.pull_request.draft == false
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install .[dev]
- name: Test
run: bash scripts/test.sh
# test-windows-latest:
# if: github.event.pull_request.draft == false
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.11"
# cache: "pip"
# cache-dependency-path: pyproject.toml
# - name: Install Dependencies
# if: steps.cache.outputs.cache-hit != 'true'
# run: pip install .[dev]
# - name: Test
# run: bash scripts/test.sh

coverage-combine:
if: github.event.pull_request.draft == false
Expand Down Expand Up @@ -159,7 +160,7 @@ jobs:
- static_analysis
- coverage-combine
- test-macos-latest
- test-windows-latest
# - test-windows-latest
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 306097e

Please sign in to comment.