Skip to content

OnlineAccuracyUpdatedEnsemble #280

OnlineAccuracyUpdatedEnsemble

OnlineAccuracyUpdatedEnsemble #280

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: Pull Request
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
pull-requests: read
jobs:
tests:
timeout-minutes: 20
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: true
matrix:
include:
- python-version: "3.9"
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
commitlint:
name: "Conventional Commit Compliance"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6