Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test commit to test code coverage #305

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
- name: Install dependencies
run: pipenv install --dev

- name: Install Coverage
run: pip install coverage

- name: Lint
run: |
pipenv run prospector --profile prospector.yaml
Expand All @@ -53,9 +56,11 @@ jobs:
run: make test

- name: Publish test coverage to coverage site
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: dbldatagen
verbose: true
files: ./coverage.xml

env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ details of use and many examples.

Release notes and details of the latest changes for this specific release
can be found in the GitHub repository
[here](https://github.com/databrickslabs/dbldatagen/blob/release/v0.4.0/CHANGELOG.md)
[here](https://github.com/databrickslabs/dbldatagen/blob/release/v0.4.001/CHANGELOG.md)

# Installation

Expand Down
2 changes: 1 addition & 1 deletion dbldatagen/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_version(version):
return version_info


__version__ = "0.4.0" # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion
__version__ = "0.4.001" # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion
__version_info__ = get_version(__version__)


Expand Down
16 changes: 14 additions & 2 deletions dbldatagen/column_spec_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,25 @@ class ColumnSpecOptions(object):

:param step: Step to use for range of generated value. As an alternative, you may use the `dataRange` parameter

:param numColumns: generate `n` columns numbered from 1 .. n-1 with same definition
:param numColumns: generate `n` columns numbered from 1 .. n-1 with same definition. If generating random column
values, it is recommended to use the `hash_fieldname` mechanism to generate random values
to avoid all columns having the same value sequence.

:param numFeatures: generate `n` columns numbered from 0 .. n-1 with same definition. Alias for `numColumns`

:param structType: If specified as "array" and used with numColumns / numFeatures, will combine columns as array

:param random: If True, will generate random values for column value. Defaults to `False`
:param random: If True, will generate random values for column value. Defaults to `False`. When set to true,
`randomSeed` and `randomSeedMethod` govern how the random values are generated.

:param randomSeed: If set, sets a value for the randomSeed. This will override the setting for the data generator
object for this column. If set to `-1` generates a true psuedo random number (as opposed to
one based on the randomSeed value)

:param randomSeedMethod: Controls how the random values are generated from the random seed.
This may have the values `fixed`, `hash_fieldname` or None.
If set to `hash_fieldname`, the `randomSeed` value is ignored and a hash of the field name
is used as the seed.

:param baseColumn: Either the string name of the base column, or a list of columns to use to
control data generation. The option ``baseColumns`` is an alias for ``baseColumn``.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
author = 'Databricks Inc'

# The full version, including alpha/beta/rc tags
release = "0.4.0" # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion
release = "0.4.001" # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion python/.bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.4.0
current_version = 0.4.001
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+){0,1}(?P<release>\D*)(?P<build>\d*)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

setuptools.setup(
name="dbldatagen",
version="0.4.0",
version="0.4.001",
author="Ronan Stokes, Databricks",
description="Databricks Labs - PySpark Synthetic Data Generator",
long_description=long_description,
Expand Down
Loading