Skip to content

replacing tests file with rust-tests and py-tests #2

replacing tests file with rust-tests and py-tests

replacing tests file with rust-tests and py-tests #2

Workflow file for this run

name: py-tests
on:
push:
branches: [fastsim-2, fastsim-3]
pull_request:
workflow_dispatch:
workflow_call:
jobs:
test:
# might not be needed
if: github.repository == 'nrel/fastsim'
runs-on: ubuntu-latest

Check failure on line 15 in .github/workflows/py-tests.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/py-tests.yaml

Invalid workflow file

You have an error in your yaml syntax on line 15
strategy:
fail-fast: true
matrix:
python-version: ['3.8', '3.9', '3.10']
if: contains(github.event.pull_request.changed_files, 'python/') || contains(github.event.pull_request.changed_files, 'rust/')
env:
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Python unit tests
run: |
pip install -e ".[dev]" && pytest -v python/fastsim/tests/
pytest -v python/fastsim/demos/