File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[run]
2- source =
3- streamz
2+ source = streamz
3+ relative_files = True
44[report]
55omit =
66 */python?.?/*
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : " *"
6+ pull_request :
7+ branches : master
8+
9+ jobs :
10+ test :
11+ name : ${{ matrix.CONDA_ENV }}-pytest
12+ runs-on : ubuntu-latest
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ CONDA_ENV : [py37, py38]
17+ steps :
18+ - name : APT
19+ run : sudo apt-get install liblzo2-dev libsnappy-dev
20+
21+ - name : Checkout
22+ uses : actions/checkout@v2
23+
24+ - name : Setup Miniconda
25+ uses : conda-incubator/setup-miniconda@v2
26+ with :
27+ auto-update-conda : true
28+ auto-activate-base : false
29+ activate-environment : test_env
30+ environment-file : ci/environment-${{ matrix.CONDA_ENV }}.yml
31+
32+ - name : pip-install
33+ shell : bash -l {0}
34+ run : |
35+ pip install -e . --no-deps
36+
37+ - name : Run Tests
38+ shell : bash -l {0}
39+ run : |
40+ pytest --verbose --cov=streamz
41+
42+ lint :
43+ name : lint
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/checkout@v2
47+ - uses : actions/setup-python@v2
48+ - name : pip-install
49+ shell : bash -l {0}
50+ run : |
51+ pip install flake8
52+ - name : Lint
53+ shell : bash -l {0}
54+ run : |
55+ flake8 fsspec
Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Set up Python
13+ uses : actions/setup-python@v2
14+ with :
15+ python-version : " 3.x"
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install setuptools setuptools-scm wheel twine
20+ - name : Build and publish
21+ env :
22+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
23+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
24+ run : |
25+ python setup.py sdist bdist_wheel
26+ twine upload dist/*
Original file line number Diff line number Diff line change 1- name : streamz_dev
1+ name : test_env
22channels :
33 - conda-forge
4- - bokeh
54 - defaults
65dependencies :
7- - python> =3.7
6+ - python=3.7
87 - pytest
98 - flake8
109 - black
@@ -31,3 +30,4 @@ dependencies:
3130 - ipykernel
3231 - ipywidgets
3332 - flaky
33+ - pytest-cov
Original file line number Diff line number Diff line change 1+ name : test_env
2+ channels :
3+ - conda-forge
4+ - defaults
5+ dependencies :
6+ - python=3.7
7+ - pytest
8+ - flake8
9+ - black
10+ - isort
11+ - tornado
12+ - toolz
13+ - zict
14+ - six
15+ - librdkafka=1.2.2
16+ - dask
17+ - distributed
18+ - pandas
19+ - python-confluent-kafka=1.1.0
20+ - numpydoc
21+ - sphinx
22+ - sphinx_rtd_theme
23+ - codecov
24+ - coverage
25+ - networkx
26+ - graphviz
27+ - python-graphviz
28+ - bokeh
29+ - ipython
30+ - ipykernel
31+ - ipywidgets
32+ - flaky
33+ - pytest-cov
You can’t perform that action at this time.
0 commit comments