Skip to content

Unit tests

Unit tests #16

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() && ne(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): Unrecognized function: 'ne'. Located at position 13 within expression: always() && ne(matrix.os, 'windows-latest')
run: |
echo "${{ matrix.os }}"
python tests/cpu.py