Skip to content

Automatically convert cache_dir string to path in script (#24) #201

Automatically convert cache_dir string to path in script (#24)

Automatically convert cache_dir string to path in script (#24) #201

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*