Add tf test matrix. #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and test | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Pull docker image π³ | |
run: docker pull cmsml/cmsml:latest_testing | |
- name: Lint π | |
run: bash tests/docker.sh cmsml/cmsml:latest_testing tests/lint.sh | |
# test_python: | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# tag: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] | |
# name: test (python ${{ matrix.tag }}) | |
# steps: | |
# - name: Checkout ποΈ | |
# uses: actions/checkout@v3 | |
# with: | |
# persist-credentials: false | |
# - name: Pull docker image π³ | |
# run: docker pull cmsml/cmsml:${{ matrix.tag }}_testing | |
# - name: Test π° | |
# run: bash tests/docker.sh cmsml/cmsml:${{ matrix.tag }}_testing | |
test_tensorflow: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
tf_version: ["2.5", "2.6", "2.11", "2.12", "2.13"] | |
name: test (tensorflow ${{ matrix.tf_version }}) | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Pull docker image π³ | |
run: docker pull cmsml/cmsml:latest_testing | |
- name: Test π° | |
run: bash tests/docker.sh cmsml/cmsml:latest_testing "pip install -U tensorflow='${{ matrix.tf_version }}'; python -m unittest tests" |