Skip to content

Commit f644319

Browse files
authored
add py3.12 support (#120)
* add py3.12 support * update numpy and lower python version bound * remove py3.8 from actions workflow * update torch to 2.3 for py3.12 support * update statsmodels * switch to non-slim python containers for gcc support, deploy from py3.11 instead of unsupported 3.8 * update upload artifact action to v4 * update download artifact action to v4 * switch to current ubuntu LTS for actions runners * update dev dependencies in pyproject.toml to new schema name * fail on missing coverage files * poetry update * fix include hidden in upload coverage actions step * fix coverage artifact duplicates * fix coverage report downloading in CI/CD * bump version to 5.1.0 --------- Signed-off-by: Grossberger Lukas (CR/AIR2.2) <Lukas.Grossberger@de.bosch.com>
1 parent 791ba44 commit f644319

File tree

4 files changed

+1478
-1389
lines changed

4 files changed

+1478
-1389
lines changed

.github/workflows/python.yaml

+17-14
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111
types: [published]
1212
jobs:
1313
lint:
14-
runs-on: ubuntu-20.04
15-
container: python:3.8-slim
14+
runs-on: ubuntu-24.04
15+
container: python:3.11
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Install dependencies
@@ -37,9 +37,9 @@ jobs:
3737
strategy:
3838
fail-fast: false
3939
matrix:
40-
os: [ubuntu-20.04]
41-
python-version: ["3.8", "3.9", "3.10", "3.11"]
42-
container: python:${{ matrix.python-version }}-slim
40+
os: [ubuntu-24.04]
41+
python-version: ["3.9", "3.10", "3.11", "3.12"]
42+
container: python:${{ matrix.python-version }}
4343
steps:
4444
- uses: actions/checkout@v3
4545
- name: Install dependencies
@@ -52,14 +52,16 @@ jobs:
5252
env:
5353
COVERAGE_FILE: ".coverage.${{ matrix.python-version }}"
5454
- name: Store coverage file
55-
uses: actions/upload-artifact@v3
55+
uses: actions/upload-artifact@v4
5656
with:
57-
name: coverage
57+
name: coverage-${{ matrix.python-version }}
5858
path: .coverage.${{ matrix.python-version }}
59+
if-no-files-found: error
60+
include-hidden-files: true
5961
report:
6062
if: github.event_name != 'release'
6163
needs: [test]
62-
runs-on: ubuntu-20.04
64+
runs-on: ubuntu-24.04
6365
permissions:
6466
# Gives the action the necessary permissions for publishing new
6567
# comments in pull requests.
@@ -71,17 +73,18 @@ jobs:
7173
steps:
7274
- uses: actions/checkout@v3
7375
- name: Download coverage summary
74-
uses: actions/download-artifact@v3
76+
uses: actions/download-artifact@v4
7577
with:
76-
name: coverage
78+
pattern: coverage-*
79+
merge-multiple: true
7780
- name: Coverage comment
7881
id: coverage_comment
7982
uses: py-cov-action/python-coverage-comment-action@v3
8083
with:
8184
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8285
MERGE_COVERAGE_FILES: true
8386
- name: Store Pull Request comment to be posted
84-
uses: actions/upload-artifact@v3
87+
uses: actions/upload-artifact@v4
8588
if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
8689
with:
8790
name: python-coverage-comment-action
@@ -90,8 +93,8 @@ jobs:
9093
deploy:
9194
needs: [lint, test]
9295
if: startsWith(github.ref, 'refs/tags/v')
93-
runs-on: ubuntu-20.04
94-
container: python:3.8-slim
96+
runs-on: ubuntu-24.04
97+
container: python:3.11
9598
steps:
9699
- uses: actions/checkout@v3
97100
- name: Install dependencies
@@ -106,7 +109,7 @@ jobs:
106109
docs:
107110
needs: [lint, test]
108111
if: startsWith(github.ref, 'refs/tags/v')
109-
runs-on: ubuntu-20.04
112+
runs-on: ubuntu-24.04
110113
steps:
111114
- uses: actions/checkout@v3
112115
with:

blackboxopt/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "5.0.4"
1+
__version__ = "5.1.0"
22

33
from parameterspace import ParameterSpace
44

0 commit comments

Comments
 (0)