Skip to content

Add PassiveAggressiveClassifier #74

Add PassiveAggressiveClassifier

Add PassiveAggressiveClassifier #74

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# TODO: In the future we ought to perform linting and code coverage checks
name: Unit Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
tests:
timeout-minutes: 20
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: true
matrix:
include:
- python-version: "3.11"
operating-system: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
python -m pip install ".[dev]"
- name: Cache Test Datasets
id: cache-test-datasets
uses: actions/cache@v4
with:
path: data
key: "test-datasets"
- name: PyTest
run: invoke test.unit
- name: Notebooks
run: invoke test.nb