Skip to content

Fix notebook test

Fix notebook test #69

Workflow file for this run

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -U codecov pytest pytest-cov pytest-benchmark pygments markdown nbconvert faker jinja2 requests
- name: Install atom-db
run: pip install -e ./
- name: Run tests
run: pytest -v tests --cov web --cov-report xml
- name: Coverage
run: codecov
check-code:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -U codecov pytest pytest-cov pytest-benchmark pygments markdown nbconvert faker jinja2 requests flake8 mypy isort black
- name: Run checks
run: |
isort web tests --check --diff
black web tests --check --diff
flake8 --ignore=E501,W503,E226 web tests
yes | mypy web --install-types || true
mypy web --ignore-missing-imports