Skip to content

new logic for tests - bad and good example; hook checking nb outputs… #285

new logic for tests - bad and good example; hook checking nb outputs…

new logic for tests - bad and good example; hook checking nb outputs… #285

Workflow file for this run

name: checks
defaults:
run:
shell: bash
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 13 * * 4'
release:
types: [published]
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
- run: pip install .
- run: pip install pylint
- run: pylint --unsafe-load-any-extension=y --disable=fixme $(git ls-files '*.py')
precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- run: |
pip install .
pip install pre-commit
pre-commit clean
pre-commit autoupdate
pre-commit run --files $(git ls-files | grep -v tests/examples/bad.ipynb)
selftest:
needs: [pylint, precommit]
strategy:
matrix:
platform: [ubuntu-latest, macos-14, windows-latest]
python-version: ["3.9", "3.13"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install .
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pytest -vv -rP -We .