Support non-breaking content in Python #599
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: Unittest for Python | |
on: | |
push: | |
paths-ignore: | |
- 'javascript/**' | |
- 'java/**' | |
pull_request: | |
paths-ignore: | |
- 'javascript/**' | |
- 'java/**' | |
permissions: | |
contents: read | |
jobs: | |
python-unittest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [3.7, 3.8, 3.9, '3.10'] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup python ${{ matrix.python-version }} | |
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install ".[dev]" | |
- name: Run unittest | |
run: pytest ./tests | |
- name: Install Jax | |
if: matrix.os != 'windows-latest' | |
run: pip install jax[cpu] | |
- name: Run unittest with Jax | |
if: matrix.os != 'windows-latest' | |
run: pytest ./scripts/tests |