Skip to content

new try to fix broken action yml #146

new try to fix broken action yml

new try to fix broken action yml #146

Workflow file for this run

name: Unit tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
# exclude:
# - os: macos-latest
# python-version: "3.7"
# - os: windows-latest
# python-version: "3.7"
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
- name: Build notebooks
if: ${{ matrix.python-version == "3.10" }}

Check failure on line 38 in .github/workflows/unit_test.yml

View workflow run for this annotation

GitHub Actions / Unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/unit_test.yml (Line: 38, Col: 13): Unexpected symbol: '"3'. Located at position 26 within expression: matrix.python-version == "3.10"
run: |
pip install -r notebooks/requirements.txt
jupyter-book build notebooks/
touch notebooks/_build/html/.nojekyll
mv notebooks/_build/html doc/nb