-
Notifications
You must be signed in to change notification settings - Fork 45
59 lines (45 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
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -e ".[tests,scripts]"
- name: Print environment
run: |
python -m pip freeze
python --version
python -c "import pysparkling; print(pysparkling.__version__)"
- name: Check if import order is fine
run: |
isort . --check --diff
- name: Test pysparkling/rdd.py
run: python -m pytest pysparkling/rdd.py -vv
- name: Test pysparkling/tests
if: matrix.os == 'ubuntu-latest' # because of timing sensitivity in stream tests
run: python -m pytest pysparkling/tests -vv
- name: Install SQL Dependencies
run: |
python -m pip install -e ".[sql]"
- name: Lint
if: matrix.python != '3.9'
run: pylint pysparkling scripts --disable=fixme
- name: pycodestyle
run: python -m pycodestyle pysparkling scripts
- name: Test All
if: matrix.os == 'ubuntu-latest' # because of timing sensitivity in stream tests
run: python -m pytest -vv