Skip to content

Update workflow to trigger on push #2

Update workflow to trigger on push

Update workflow to trigger on push #2

name: Build and Test
on: [push]
jobs:
build-and-test:
name: build ${{ matrix.python-version }} on ${{ matrix.platform || matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu
- macos
- windows
python-version:
- "3.8"
- "3.9"
- "3.10"
runs-on: ${{ format(`{0}-latest`, matrix.os) }}

Check failure on line 19 in .github/workflows/build_and_test.yaml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/build_and_test.yaml (Line: 19, Col: 14): Unexpected symbol: '`{0}-latest`'. Located at position 8 within expression: format(`{0}-latest`, matrix.os)
steps:
- uses: actions/checkout@v4
- name: set up rust
uses: dtolnay/rust-toolchain@stable
- run: rustup target add aarch64-apple-darwin
if: matrix.os == 'macos'
- name: set up python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install python dependencies
run: python -m pip install --upgrade pip setuptools wheel pytest
- name: run cargo tests
run: cargo test
- name: install FASTSim python
run: pip install -e .
- name: run pytest
run: pytest -v