Skip to content

Merge pull request #49 from limix/nov23FixSamples #35

Merge pull request #49 from limix/nov23FixSamples

Merge pull request #49 from limix/nov23FixSamples #35

name: Python package
on: [push, pull_request]
jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest black isort setuptools --upgrade
pip install . --use-feature=in-tree-build && pip uninstall "$(python setup.py --name)" --yes
- name: Lint
run: |
flake8 .
black --check .
isort --check-only .
- name: Test
run: pytest .