chores: update notebook to demostrate or experiment with the mapping… #125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Testing | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| name: Lint Code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| with: | |
| python-version: '3.13' | |
| - name: Run Ruff (lint + formatting + import order) | |
| run: .venv/bin/ruff check . | |
| - name: Run Ruff format check (like Black) | |
| run: .venv/bin/ruff format --check . | |
| test: | |
| name: Unit Testing | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.12'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package in development mode | |
| run: uv pip install -e . | |
| - name: Run tests with coverage | |
| run: | | |
| source .venv/bin/activate | |
| pytest --cov=ontograph tests/ | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: .coverage* |