forked from svenkreiss/pysparkling
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (46 loc) · 1.48 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
# env:
# PYTHONPATH: src
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python: [ 3.6, 3.7, 3.8, 3.9 ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[tests,scripts]" --use-deprecated=legacy-resolver
- name: Print environment
run: |
python -m pip freeze
python --version
python -c "from gelanis.__version__ import __version__; print(__version__)"
- name: Check if import order is fine
run: |
isort . --check --diff
- name: Install SQL Dependencies
run: |
python -m pip install -e ".[sql]" --use-deprecated=legacy-resolver
- name: Lint
if: matrix.python == '3.9'
# https://github.com/PyCQA/pylint/issues/3882
run: pylint src scripts tests --disable=fixme,unsubscriptable-object
- name: Lint
if: matrix.python != '3.9'
run: pylint src scripts tests --disable=fixme
- name: pycodestyle
run: python -m pycodestyle src tests scripts
- name: Test All
if: matrix.os == 'ubuntu-latest' # because of timing sensitivity in stream tests
run: pytest -vv