Skip to content

Enable all tests.

Enable all tests. #56

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
- name: Lint 🔍
run: bash tests/docker.sh cmsml/cmsml tests/lint.sh
test:
runs-on: ubuntu-latest
strategy:
matrix:
versions:
# scan python versions
# - {tag: "3.6", tf: ""}
# - {tag: "3.7", tf: ""}
# - {tag: "3.8", tf: ""}
# - {tag: "3.9", tf: ""}
# - {tag: "3.10", tf: ""}
# - {tag: "3.11", tf: ""}
# scan tf versions
- {py: "3.9_base", tf: "2.5"}
# - {py: "3.9_base", tf: "2.6"}
# - {py: "3.9_base", tf: "2.11"}
# - {py: "3.9_base", tf: "2.12"}
# - {py: "3.9_base", tf: "2.13"}
name: test (image ${{ matrix.versions.tag }}, tf ${{ matrix.versions.tf }})
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Pull docker image 🐳
run: docker pull cmsml/cmsml:${{ matrix.versions.tag }}
- name: Test 🎰
run: bash tests/docker.sh cmsml/cmsml:${{ matrix.versions.tag }} "[ -z '${{ matrix.versions.tf }}' ] || pip install -U tensorflow=='${{ matrix.versions.tf }}'; python -m unittest tests"