Skip to content

test: 🧪 Pickle testing refactor #398

test: 🧪 Pickle testing refactor

test: 🧪 Pickle testing refactor #398

Workflow file for this run

name: Test
on:
push:
branches: main
pull_request:
branches: "*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-test-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
make install-test
- name: Run Tests
run: |
make test
test-notebooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run notebook tests in devcontainer
uses: devcontainers/[email protected]
with:
cacheFrom: mcr.microsoft.com/devcontainers/python:1-3.9-bookworm
push: never
runCmd: make test-notebooks