Skip to content

Commit

Permalink
Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreso committed Nov 20, 2023
1 parent 974929f commit f58b474
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 12 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- uses: actions/setup-python@v4
id: setup_python
with:
python-version: '3.11'
python-version: '3.12'

- uses: actions/cache@v3
with:
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
uses: ./.github/workflows/build-wheels-linux.yml
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -93,7 +93,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
uses: ./.github/workflows/build-wheels-macos.yml
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -104,7 +104,7 @@ jobs:
fail-fast: false
matrix:
test-type: [ 'integration-tests', 'unit-tests', 'gui-test' ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
os: [ ubuntu-latest ]
exclude:
- os: ubuntu-latest
Expand All @@ -113,6 +113,9 @@ jobs:
- os: ubuntu-latest
python-version: '3.10'
test-type: 'gui-test'
- os: ubuntu-latest
python-version: '3.11'
test-type: 'gui-test'
uses: ./.github/workflows/test_ert.yml
with:
os: ${{ matrix.os }}
Expand All @@ -125,7 +128,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
uses: ./.github/workflows/test_ert_with_slurm.yml
with:
os: ${{ matrix.os }}
Expand All @@ -151,7 +154,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.11']
python-version: ['3.12']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Install with dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/setup-python@v4
id: setup_python
with:
python-version: '3.11'
python-version: '3.12'
cache: "pip"
cache-dependency-path: |
setup.py
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run_ert_test_data_setups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.10', '3.11']
python-version: ['3.8', '3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest]
exclude:
- python-version: '3.8'
os: macos-latest
- python-version: '3.10'
os: macos-latest
- python-version: '3.11'
os: macos-latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
python-version: ['3.12']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_semeio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: Install ert
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
python-version: ['3.11']
python-version: ['3.12']

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions ci/github/build_linux_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ case "$1" in
3.9) pyver=cp39-cp39 ;;
3.10) pyver=cp310-cp310 ;;
3.11) pyver=cp311-cp311 ;;
3.12) pyver=cp312-cp312 ;;
*)
echo "Unknown Python version $1"
exit 1
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
]
Expand Down

0 comments on commit f58b474

Please sign in to comment.