Skip to content

fix edgetest

fix edgetest #960

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@v3
with:
python-version: ${{ matrix.python-version }}
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