-
Notifications
You must be signed in to change notification settings - Fork 148
64 lines (54 loc) · 1.38 KB
/
main.yaml
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
61
62
63
64
name: CI
on:
push:
branches: "*"
pull_request:
branches: master
jobs:
test:
name: ${{ matrix.CONDA_ENV }}-pytest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
CONDA_ENV: [py39, py310, py311, py312]
# env:
# STREAMZ_LAUNCH_KAFKA: true
steps:
- name: APT
run: sudo apt-get install liblzo2-dev libsnappy-dev
- name: Checkout
uses: actions/checkout@v2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: false
activate-environment: test_env
environment-file: ci/environment-${{ matrix.CONDA_ENV }}.yml
- name: pip-install
shell: bash -l {0}
run: |
pip install -e . --no-deps
- name: Run Tests
shell: bash -l {0}
run: |
pytest --verbose --cov=streamz
- name: coveralls
shell: bash -l {0}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.CONDA_ENV == 'py312' }}
run: coveralls
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: pip-install
shell: bash -l {0}
run: |
pip install flake8
- name: Lint
shell: bash -l {0}
run: |
flake8 streamz