Skip to content

Commit 1db0228

Browse files
authored
Merge pull request #135 from whylabs/release_0.1.13
Release 0.1.13
2 parents df7c1d2 + fd6adf7 commit 1db0228

File tree

105 files changed

+35541
-879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+35541
-879
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.1.9-dev0
2+
current_version = 0.1.13
33
commit = True
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?

.coveragerc

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/continuous-integration.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ name: whylogs CI
22

33
on:
44
push:
5-
branches: [ mainline ]
5+
branches: [ mainline, release]
66
pull_request:
7-
branches: [ mainline ]
7+
branches: [ mainline, release]
88

99
jobs:
10-
build:
10+
test:
1111
runs-on: ${{ matrix.os }}
12-
# runs-on: ubuntu-latest
1312

1413
strategy:
1514
fail-fast: false
1615
max-parallel: 6
1716
matrix:
18-
python-version: [ 3.6, 3.7,3.8]
17+
python-version: [3.6, 3.7, 3.8]
1918
os: [ubuntu-latest, macOS-latest]
2019

2120
steps:
@@ -40,6 +39,28 @@ jobs:
4039
- name: Install dependencies
4140
run: |
4241
python -m pip install --upgrade pip
43-
pip install tox tox-gh-actions pytest pytest-cov coverage
42+
pip install tox tox-gh-actions pytest pytest-cov coverage
4443
- name: Test with tox
45-
run: make test-all
44+
run: |
45+
make test-all
46+
- name: Coveralls Parallel
47+
if: ${{matrix.os == 'ubuntu-latest'}}
48+
env:
49+
COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
50+
uses: AndreMiras/coveralls-python-action@develop
51+
with:
52+
flag-name: run-${{ matrix.os }}-${{matrix.python-version}}
53+
parallel: true
54+
github-token : ${{ secrets.GITHUB_TOKEN}}
55+
finish:
56+
needs: test
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Coveralls Finished
60+
env:
61+
COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
62+
uses: AndreMiras/coveralls-python-action@develop
63+
with:
64+
parallel-finished: true
65+
github-token : ${{ secrets.GITHUB_TOKEN }}
66+

DEVELOPMENT.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ To run tests using the current Python environment:
7979
make test
8080
```
8181
82+
8283
### Coverage
8384
8485
Coverage can be checked with
@@ -87,6 +88,30 @@ Coverage can be checked with
8788
make coverage
8889
```
8990
91+
### Testing CI locally
92+
93+
you can run local github actions on the ubuntu using https://github.com/nektos/act. Currently you need to build a latest docker image for ubuntu using the following dockerfile
94+
95+
```dockerfile
96+
FROM ubuntu:20.04
97+
ENV LC_CTYPE=en_US.UTF-8
98+
RUN apt-get update \
99+
&& apt-get upgrade -y \
100+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
101+
git \
102+
build-essential \
103+
curl \
104+
nodejs \
105+
npm \
106+
&& rm -rf /var/lib/apt/lists/*
107+
```
108+
if you tag the above docker image as `ubuntu-builder`, then simply run at the root of the project
109+
110+
```
111+
act -P ubuntu-latest=ubuntu-builder
112+
```
113+
It will run all the tests in ubuntu, currently act does not support matrix.os runs on mac-os or windows
114+
90115
## Release process
91116

92117
* If you are doing development locally, use the following command to create a local dev version.

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ clean-test: ## remove test and coverage artifacts
4949
rm -fr .pytest_cache
5050

5151
lint: ## check style with flake8
52-
tox flake8
52+
tox -e flake8
5353

5454
test: build-proto ## run tests quickly with the default Python
55-
python setup.py test
55+
pytest
5656

5757
test-all: build-proto ## run tests on every Python version with tox
5858
tox
@@ -75,7 +75,8 @@ servedocs: docs ## compile the docs watching for changes
7575
release: dist ## package and upload a release
7676
twine upload dist/*
7777

78-
dist: clean ## builds source and wheel package
78+
dist: clean-build build-proto ## builds source and wheel package
79+
python setup.py build
7980
python setup.py sdist
8081
python setup.py bdist_wheel
8182
ls -l dist

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# whylogs Library
22
[![License](http://img.shields.io/:license-Apache%202-blue.svg)](https://github.com/whylabs/whylogs-python/blob/mainline/LICENSE)
33
[![PyPI version](https://badge.fury.io/py/whylogs.svg)](https://badge.fury.io/py/whylogs)
4+
[![Coverage Status](https://coveralls.io/repos/github/whylabs/whylogs-python/badge.svg?branch=mainline&service=github)](https://coveralls.io/github/whylabs/whylogs-python?branch=mainline)
45
[![Python Version](https://img.shields.io/pypi/pyversions/whylogs)](https://pypi.org/project/whylogs/)
56
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
67
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/4490/badge)](https://bestpractices.coreinfrastructure.org/projects/4490)

codecov.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
codecov:
2+
token: 4d9289d0-5a68-41c1-9c51-23559653825a
3+

docs/api/modules.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
whylogs
2+
=======
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
whylogs

docs/api/whylogs.app.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
whylogs.app package
2+
===================
3+
4+
Submodules
5+
----------
6+
7+
whylogs.app.config module
8+
-------------------------
9+
10+
.. automodule:: whylogs.app.config
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
whylogs.app.logger module
16+
-------------------------
17+
18+
.. automodule:: whylogs.app.logger
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
whylogs.app.output\_formats module
24+
----------------------------------
25+
26+
.. automodule:: whylogs.app.output_formats
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
whylogs.app.session module
32+
--------------------------
33+
34+
.. automodule:: whylogs.app.session
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
whylogs.app.writers module
40+
--------------------------
41+
42+
.. automodule:: whylogs.app.writers
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
47+
Module contents
48+
---------------
49+
50+
.. automodule:: whylogs.app
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:

docs/api/whylogs.cli.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
whylogs.cli package
2+
===================
3+
4+
Submodules
5+
----------
6+
7+
whylogs.cli.cli module
8+
----------------------
9+
10+
.. automodule:: whylogs.cli.cli
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
whylogs.cli.cli\_text module
16+
----------------------------
17+
18+
.. automodule:: whylogs.cli.cli_text
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
whylogs.cli.demo\_cli module
24+
----------------------------
25+
26+
.. automodule:: whylogs.cli.demo_cli
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
whylogs.cli.init module
32+
-----------------------
33+
34+
.. automodule:: whylogs.cli.init
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
whylogs.cli.utils module
40+
------------------------
41+
42+
.. automodule:: whylogs.cli.utils
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
47+
Module contents
48+
---------------
49+
50+
.. automodule:: whylogs.cli
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:

0 commit comments

Comments
 (0)