Skip to content

making sure examples run so including them in tests and small updates #42

making sure examples run so including them in tests and small updates

making sure examples run so including them in tests and small updates #42

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
build_pip:
name: Build (${{ matrix.os }} Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: False
matrix:
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
id: cp
with:
python-version: ${{ matrix.python-version }}
update-environment: true
- name: Pip Install
run: |
'${{ steps.cp.outputs.python-path }}' -m pip install -vv -e .[test]
- name: Test run
run: |
'${{ steps.cp.outputs.python-path }}' -m pytest -v --disable-warnings pCrunch
- name: Test examples
run: |
cd examples
treon example.ipynb