Skip to content

Commit 0ec0e93

Browse files
committed
make release-tag: Merge branch 'main' into stable
2 parents 6946f7c + c23f5d8 commit 0ec0e93

34 files changed

+404
-148
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Dependency Checker
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * 1-5'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Python 3.9
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: 3.9
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install .[dev]
18+
make check-deps OUTPUT_FILEPATH=latest_requirements.txt
19+
- name: Create pull request
20+
id: cpr
21+
uses: peter-evans/create-pull-request@v4
22+
with:
23+
token: ${{ secrets.GH_ACCESS_TOKEN }}
24+
commit-message: Update latest dependencies
25+
title: Automated Latest Dependency Updates
26+
body: "This is an auto-generated PR with **latest** dependency updates."
27+
branch: latest-dependency-update
28+
branch-suffix: short-commit-hash
29+
base: main

.github/workflows/integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11']
13+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v4
1313
- name: Set up Python 3.9
14-
uses: actions/setup-python@v1
14+
uses: actions/setup-python@v5
1515
with:
1616
python-version: 3.9
1717
- name: Install dependencies

.github/workflows/minimum.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11']
13+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies

.github/workflows/readme.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11']
13+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1414
os: [ubuntu-latest, macos-latest] # skip windows bc rundoc fails
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Static Code Analysis
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
code-analysis:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python 3.10
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.10'
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
python -m pip install bandit==1.7.7
21+
- name: Save code analysis
22+
run: bandit -r . -x ./tests -f txt -o static_code_analysis.txt --exit-zero
23+
- name: Create pull request
24+
id: cpr
25+
uses: peter-evans/create-pull-request@v4
26+
with:
27+
token: ${{ secrets.GH_ACCESS_TOKEN }}
28+
commit-message: Update static code analysis
29+
title: Latest Code Analysis
30+
body: "This is an auto-generated PR with the **latest** code analysis results."
31+
branch: static-code-analysis
32+
branch-suffix: short-commit-hash
33+
base: main

.github/workflows/unit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11']
13+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
@@ -26,4 +26,4 @@ jobs:
2626
run: invoke unit
2727
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
2828
name: Upload codecov report
29-
uses: codecov/codecov-action@v2
29+
uses: codecov/codecov-action@v4

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.14.0 - 2024-04-11
4+
5+
This release adds support for Python 3.12! It also improves the way the reports print in verbose mode.
6+
7+
### Maintenance
8+
9+
* Support Python 3.12 - Issue [#529](https://github.com/sdv-dev/SDMetrics/issues/529) by @fealho
10+
* Add dependency checker - Issue [#547](https://github.com/sdv-dev/SDMetrics/issues/547) by @lajohn4747
11+
* Add bandit workflow - Issue [#552](https://github.com/sdv-dev/SDMetrics/issues/552) by @R-Palazzo
12+
* Fix minimum version workflow when pointing to github branch - Issue [#555](https://github.com/sdv-dev/SDMetrics/issues/555) by @R-Palazzo
13+
14+
### New Features
15+
16+
* Improve readability of the report scores when verbosity is on - Issue [#538](https://github.com/sdv-dev/SDMetrics/issues/538) by @lajohn4747
17+
318
## v0.13.1 - 2024-03-14
419

520
### Maintenance

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Requirements
44

5-
**SDMetrics** has been developed and tested on [Python 3.8, 3.9, 3.10 and 3.11](https://www.python.org/downloads/)
5+
**SDMetrics** has been developed and tested on [Python 3.8, 3.9, 3.10, 3.11 and 3.12](https://www.python.org/downloads/)
66

77
Also, although it is not strictly required, the usage of a [virtualenv](
88
https://virtualenv.pypa.io/en/latest/) is highly recommended in order to avoid

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ lint: ## check style with flake8 and isort
8787
fix-lint: ## fix lint issues using autoflake, autopep8, and isort
8888
find sdmetrics tests -name '*.py' | xargs autoflake --in-place --remove-all-unused-imports --remove-unused-variables
8989
autopep8 --in-place --recursive --aggressive sdmetrics tests
90-
isort --apply --atomic --recursive sdmetrics tests
90+
isort --apply --atomic sdmetrics tests
9191

9292

9393
# TEST TARGETS
@@ -204,6 +204,11 @@ ifeq ($(CHANGELOG_LINES),0)
204204
$(error Please insert the release notes in HISTORY.md before releasing)
205205
endif
206206

207+
.PHONY: check-deps
208+
check-deps: # Dependency targets
209+
$(eval allow_list='numpy=|pandas=|scikit-learn=|scipy=|tqdm=|plotly=|copulas=')
210+
pip freeze | grep -v "SDMetrics.git" | grep -E $(allow_list) | sort > $(OUTPUT_FILEPATH)
211+
207212
.PHONY: check-release
208213
check-release: check-clean check-main check-history ## Check if the release can be made
209214
@echo "A new release can be made"

0 commit comments

Comments
 (0)