Skip to content

Commit 12762c9

Browse files
committed
make release-tag: Merge branch 'main' into stable
2 parents f996baa + 3f5515d commit 12762c9

File tree

25 files changed

+496
-123
lines changed

25 files changed

+496
-123
lines changed

.github/workflows/integration.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@ jobs:
2929
python -m pip install invoke .[test]
3030
- name: Run integration tests
3131
run: invoke integration
32+
33+
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12
34+
name: Upload integration codecov report
35+
uses: codecov/codecov-action@v4
36+
with:
37+
flags: integration
38+
file: ${{ github.workspace }}/integration_cov.xml
39+
fail_ci_if_error: true
40+
token: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release Prep
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Branch to merge release notes and code analysis into.'
8+
required: true
9+
default: 'main'
10+
version:
11+
description:
12+
'Version to use for the release. Must be in format: X.Y.Z.'
13+
date:
14+
description:
15+
'Date of the release. Must be in format YYYY-MM-DD.'
16+
17+
jobs:
18+
preparerelease:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python 3.10
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.10'
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install requests==2.31.0
31+
python -m pip install bandit==1.7.7
32+
python -m pip install .[test]
33+
34+
- name: Generate release notes
35+
env:
36+
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
37+
run: >
38+
python scripts/release_notes_generator.py
39+
-v ${{ inputs.version }}
40+
-d ${{ inputs.date }}
41+
42+
- name: Save static code analysis
43+
run: bandit -r . -x ./tests,./scripts,./build -f txt -o static_code_analysis.txt --exit-zero
44+
45+
- name: Create pull request
46+
id: cpr
47+
uses: peter-evans/create-pull-request@v4
48+
with:
49+
token: ${{ secrets.GH_ACCESS_TOKEN }}
50+
commit-message: Prepare release for v${{ inputs.version }}
51+
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
52+
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
53+
title: v${{ inputs.version }} Release Preparation
54+
body: "This is an auto-generated PR to prepare the release."
55+
branch: prepared-release
56+
branch-suffix: short-commit-hash
57+
base: ${{ inputs.branch }}

.github/workflows/static_code_analysis.yml

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

.github/workflows/unit.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
python -m pip install invoke .[test]
3030
- name: Run unit tests
3131
run: invoke unit
32-
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
33-
name: Upload codecov report
32+
33+
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12
34+
name: Upload unit codecov report
3435
uses: codecov/codecov-action@v4
36+
with:
37+
flags: unit
38+
file: ${{ github.workspace }}/unit_cov.xml
39+
fail_ci_if_error: true
40+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ coverage.xml
4646
*.cover
4747
.hypothesis/
4848
.pytest_cache/
49+
*_cov.xml
4950

5051
# Translations
5152
*.mo
@@ -108,4 +109,3 @@ ENV/
108109

109110
# OS Files
110111
.DS_Store
111-

HISTORY.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# History
22

3+
## v0.17.1 - 2024-12-04
4+
5+
### Maintenance
6+
7+
* Create Prepare Release workflow - Issue [#674](https://github.com/sdv-dev/SDMetrics/issues/674) by @amontanez24
8+
* Update codecov and add flag for integration tests - Issue [#644](https://github.com/sdv-dev/SDMetrics/issues/644) by @pvk-developer
9+
10+
### Bugs Fixed
11+
12+
* `InterRowMSAS` ignores sequences with missing values - Issue [#679](https://github.com/sdv-dev/SDMetrics/issues/679) by @fealho
13+
* Improve error handling for datetime values when `apply_log = True` for `InterRowMSAS` - Issue [#672](https://github.com/sdv-dev/SDMetrics/issues/672) by @fealho
14+
* Improve warning handling for non-positive values when `apply_log = True` for `InterRowMSAS` - Issue [#670](https://github.com/sdv-dev/SDMetrics/issues/670) by @fealho
15+
* `StatisticMSAS` raises undesirable `FutureWarning` - Issue [#665](https://github.com/sdv-dev/SDMetrics/issues/665) by @fealho
16+
* `KSComplement` can be unstable for constant float values - Issue [#652](https://github.com/sdv-dev/SDMetrics/issues/652) by @fealho
17+
318
## v0.17.0 - 2024-11-14
419

520
This release adds a number of Multi-Sequence Aggregate Similarity (MSAS) metrics!

codecov.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
precision: 2
3+
range: "90...100"
4+
status:
5+
project:
6+
default: false
7+
patch:
8+
default: false

conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = '0.17.0' %}
1+
{% set version = '0.17.1.dev1' %}
22

33
package:
44
name: "{{ name|lower }}"

latest_requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
copulas==0.11.1
1+
copulas==0.12.0
22
numpy==2.0.2
33
pandas==2.2.3
44
plotly==5.24.1
55
scikit-learn==1.5.2
66
scipy==1.13.1
7-
tqdm==4.67.0
7+
tqdm==4.67.1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ convention = 'google'
134134
add-ignore = ['D107', 'D407', 'D417']
135135

136136
[tool.bumpversion]
137-
current_version = "0.17.0"
137+
current_version = "0.17.1.dev1"
138138
parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<candidate>\d+))?'
139139
serialize = [
140140
'{major}.{minor}.{patch}.{release}{candidate}',

0 commit comments

Comments
 (0)