Skip to content

Unit tests

Unit tests #14

Workflow file for this run

name: Unit tests
defaults:
run:
shell: bash -le {0}
on:
repository_dispatch:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pip'
- name: install
run: pip install .
- name: test os
run: python tests/os.py
- name: test cpu
if: always() && ${{ matrix.os != "windows-latest" }}

Check failure on line 34 in .github/workflows/unit_tests.yml

View workflow run for this annotation

GitHub Actions / Unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/unit_tests.yml (Line: 34, Col: 13): Unexpected symbol: '"windows-latest"'. Located at position 14 within expression: matrix.os != "windows-latest"
run: |
echo "${{ matrix.os }}"
python tests/cpu.py