Skip to content

Add tf test matrix. #51

Add tf test matrix.

Add tf test matrix. #51

Workflow file for this run

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"