Skip to content

Commit 8ecaf43

Browse files
committed
make release-tag: Merge branch 'main' into stable
2 parents 06fc5df + 446c2b8 commit 8ecaf43

21 files changed

+692
-53
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/end_to_end.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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:
1616
- uses: actions/checkout@v1

.github/workflows/minimum.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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:
1616
- uses: actions/checkout@v1

.github/workflows/numerical.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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:
1616
- uses: actions/checkout@v1

.github/workflows/readme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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]
1515
steps:
1616
- uses: actions/checkout@v1
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/tutorials.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
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
steps:
1515
- uses: actions/checkout@v1
1616
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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:
1616
- uses: actions/checkout@v1

HISTORY.md

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

3+
## v0.11.0 - 2024-04-10
4+
5+
This release adds support for Python 3.12!
6+
7+
### Bugs Fixed
8+
9+
* Fix minimum version workflow when pointing to github branch - Issue [#392](https://github.com/sdv-dev/Copulas/issues/392) by @R-Palazzo
10+
11+
### Maintenance
12+
13+
* Support Python 3.12 - Issue [#372](https://github.com/sdv-dev/Copulas/issues/372) by @fealho
14+
* Add dependency checker - Issue [#388](https://github.com/sdv-dev/Copulas/issues/388) by @lajohn4747
15+
* Add bandit workflow - Issue [#391](https://github.com/sdv-dev/Copulas/issues/391) by @R-Palazzo
16+
317
## v0.10.1 - 2024-03-13
418

519
This release fixes a bug that occurred when calculating probability density in a gaussian copula.

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ ifeq ($(CHANGELOG_LINES),0)
249249
$(error Please insert the release notes in HISTORY.md before releasing)
250250
endif
251251

252+
.PHONY: check-deps
253+
check-deps: # Dependency targets
254+
$(eval allow_list='numpy=|pandas=|scipy=|plotly=')
255+
pip freeze | grep -v "Copulas.git" | grep -E $(allow_list) | sort > $(OUTPUT_FILEPATH)
256+
252257
.PHONY: check-release
253258
check-release: check-clean check-candidate check-main check-history ## Check if the release can be made
254259
@echo "A new release can be made"

0 commit comments

Comments
 (0)