Fix doctests #4675
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: tests | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
schedule: | |
- cron: '0 3 * * *' | |
jobs: | |
build-and-test: | |
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }} jax=${{ matrix.jax-version }}" | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
os: [ubuntu-latest] | |
jax-version: [newest] | |
include: | |
- python-version: "3.9" | |
os: "ubuntu-latest" | |
jax-version: "0.4.27" # Keep version in sync with pyproject.toml and copy.bara.sky! | |
steps: | |
- uses: "actions/checkout@v2" | |
- uses: "actions/setup-python@v4" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
cache: "pip" | |
cache-dependency-path: 'pyproject.toml' | |
- name: Run CI tests | |
run: JAX_VERSION="${{ matrix.jax-version }}" bash test.sh | |
shell: bash | |
markdown-link-check: | |
name: "Check links in markdown files" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check links | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
with: | |
use-quiet-mode: yes | |
use-verbose-mode: yes |