Skip to content

Add typehints to much of the core code. #683

Add typehints to much of the core code.

Add typehints to much of the core code. #683

Workflow file for this run

# This workflow installs the package dependencies, lints the package, and
# executes the package tests.
# For more details: https://docs.github.com/en/actions/guides/building-and-testing-python
name: Run tests
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
# fetch all tags so `versioneer` can properly determine current version
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: true
activate-environment: rubicon-ml-dev
environment-file: environment.yml
- name: Check formatting with black
run: |
black --check .
- name: Check imports with isort
run: |
isort -c .
- name: Lint with flake8
run: |
flake8 .
- name: Validate build
run: |
python setup.py sdist bdist_wheel
pip install dist/rubicon_ml-*.whl
- name: Test with pytest
run: |
pytest -m 'not run_notebooks and not write_files'