From bf626959639ba86d2c9d89472f47aba841cf2d1d Mon Sep 17 00:00:00 2001 From: Federico Negri Date: Tue, 10 Oct 2023 09:22:34 +0200 Subject: [PATCH 1/3] Update python versions in CI/CD --- .github/workflows/ci_cd.yml | 2 +- .github/workflows/nightly.yml | 6 +++--- tox.ini | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 261dd501f..1de3939a6 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -9,7 +9,7 @@ on: - main env: - MAIN_PYTHON_VERSION: '3.7' + MAIN_PYTHON_VERSION: '3.9' DOC_PYTHON_VERSION: '3.9' DOCUMENTATION_CNAME: 'rep.docs.pyansys.com' diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index b9cf92f9f..56feb2117 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -39,8 +39,8 @@ jobs: # os: [windows-latest, ubuntu-latest] os: [ubuntu-latest] cfg: - - {python-version: "3.7", toxenv: "py37"} - - {python-version: "3.11", toxenv: "py311"} + - {python-version: "3.9", toxenv: "py39"} + - {python-version: "3.12", toxenv: "py312"} fail-fast: false steps: @@ -122,7 +122,7 @@ jobs: python -m pip install --upgrade pip setuptools tox tox-gh-actions - name: Test with tox - run: tox -e py37-witheval + run: tox -e py39-witheval env: REP_TEST_URL: https://repkube.westeurope.cloudapp.azure.com/dev/rep REP_TEST_USERNAME: repbuild diff --git a/tox.ini b/tox.ini index 4b4f29eb0..c622138e1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,17 +1,16 @@ [tox] description = Default tox environments list envlist = - style,{py37,py38,py39,py310}{,-coverage},doc + style,{py39,py310,py311,py312}{,-coverage},doc skip_missing_interpreters = true [testenv] description = Checks for project unit tests and coverage (if desired) basepython = - py37: python3.7 - py38: python3.8 py39: python3.9 py310: python3.10 py311: python3.11 + py312: python3.12 py: python3 {style,reformat,doc,build}: python3 passenv = REP_TEST_* From 0e3f05d08979a5d5d47dc5bc2c1f10dee1e8eb99 Mon Sep 17 00:00:00 2001 From: Federico Negri Date: Tue, 10 Oct 2023 09:32:35 +0200 Subject: [PATCH 2/3] Bump deps versions --- requirements/requirements_build.txt | 2 +- requirements/requirements_doc.txt | 6 +++--- requirements/requirements_tests.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements/requirements_build.txt b/requirements/requirements_build.txt index d30c0ffd6..bce5d1b4e 100644 --- a/requirements/requirements_build.txt +++ b/requirements/requirements_build.txt @@ -1,3 +1,3 @@ -build==0.10.0 +build==1.0.3 twine==4.0.2 wheel \ No newline at end of file diff --git a/requirements/requirements_doc.txt b/requirements/requirements_doc.txt index 3853ef084..dd20fc4c2 100644 --- a/requirements/requirements_doc.txt +++ b/requirements/requirements_doc.txt @@ -1,9 +1,9 @@ -Sphinx==5.3.0 +Sphinx==7.2.6 numpydoc==1.5.0 -ansys-sphinx-theme==0.9.9 +ansys-sphinx-theme==0.12.2 sphinx-copybutton==0.5.2 apispec==6.3.0 sphinxcontrib-httpdomain==1.8.1 sphinxcontrib-globalsubs==0.1.1 sphinxnotes-strike==1.2 -sphinx-autodoc-typehints==1.23.0 +sphinx-autodoc-typehints==1.24.0 diff --git a/requirements/requirements_tests.txt b/requirements/requirements_tests.txt index 16eae74d2..4220a11ca 100644 --- a/requirements/requirements_tests.txt +++ b/requirements/requirements_tests.txt @@ -1,2 +1,2 @@ -pytest==7.4.0 +pytest==7.4.2 pytest-cov==4.1.0 From 0b3ea0b89031241bf5e9f0b22817c6044220d255 Mon Sep 17 00:00:00 2001 From: Federico Negri Date: Wed, 11 Oct 2023 10:39:51 +0200 Subject: [PATCH 3/3] Test with py311 --- .github/workflows/nightly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 56feb2117..b1d761413 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -5,7 +5,7 @@ on: - cron: "0 2 * * *" env: - MAIN_PYTHON_VERSION: '3.7' + MAIN_PYTHON_VERSION: '3.9' DOC_PYTHON_VERSION: '3.9' concurrency: @@ -40,7 +40,7 @@ jobs: os: [ubuntu-latest] cfg: - {python-version: "3.9", toxenv: "py39"} - - {python-version: "3.12", toxenv: "py312"} + - {python-version: "3.11", toxenv: "py311"} fail-fast: false steps: