-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1.14 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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/