Skip to content

Update pyproject.toml #171

Update pyproject.toml

Update pyproject.toml #171

Workflow file for this run

name: tests
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9] #, 3.10.*]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies 🔨
run: |
python -m pip install --upgrade pip
pip install .
pip install --upgrade-strategy only-if-needed pandas tables pyarrow
pip install --upgrade-strategy only-if-needed flake8 black mypy data-science-types # code quality related
- name: Run tests
run: |
python -W ignore:ResourceWarning -m unittest
- name: Code formatting (black)
if: always()
run: |
black --check qnorm/ tests/
- name: Code formatting (flake8)
if: always()
run: |
flake8 qnorm/ tests/
# (I can't get) mypy working with singledispatch and overload
# - name: Code annotation (mypy)
# run: |
# mypy --config-file pyproject.toml --always-true=pandas_import ./qnorm/