Skip to content

Use Poetry

Use Poetry #372

Workflow file for this run

name: unit-tests
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build River
uses: ./.github/actions/install-env
with:
python-version: "3.12"
build-root: true
- name: Cache River datasets
uses: actions/cache@v3
with:
path: ~/river_data
key: ${{ runner.os }}
- name: Cache scikit-learn datasets
uses: actions/cache@v3
with:
path: ~/scikit_learn_data
key: ${{ runner.os }}
- name: Download datasets
run: |
poetry run python -c "from river import datasets; datasets.CreditCard().download(); datasets.Elec2().download(); datasets.SMSSpam().download()"
poetry run python -c "from river import bandit; bandit.datasets.NewsArticles().download()"
- name: pytest
run: |
poetry run pytest -m "not datasets" --durations=10 -n logical # Run pytest on all logical CPU cores