Skip to content

Add baseline comparison functionality for demonstrating table knowled… #15

Add baseline comparison functionality for demonstrating table knowled…

Add baseline comparison functionality for demonstrating table knowled… #15

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
exclude:
# Reduce matrix size
- os: macos-latest
python-version: "3.8"
- os: windows-latest
python-version: "3.8"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Lint with ruff
run: |
ruff check src/ tests/
- name: Check formatting with black
run: |
black --check src/ tests/
- name: Type check with mypy
run: |
mypy src/tabula_rasa
continue-on-error: true
- name: Run tests
run: |
pytest tests/ -v --cov=tabula_rasa --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
with:
file: ./coverage.xml
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff black isort
- name: Lint with ruff
run: ruff check src/ tests/
- name: Check formatting
run: |
black --check src/ tests/
isort --check-only src/ tests/