From da526fe3c8bd1f0d21981e92241375a83b9d41d8 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Fri, 17 May 2024 21:26:19 -0400 Subject: [PATCH 1/2] maint: bump main dev version (#474) * maint: bump main dev version * Adding changelog entry: 474.changed.md --------- Co-authored-by: pyansys-ci-bot Co-authored-by: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com> --- doc/changelog.d/474.changed.md | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 doc/changelog.d/474.changed.md diff --git a/doc/changelog.d/474.changed.md b/doc/changelog.d/474.changed.md new file mode 100644 index 000000000..83f6e91d7 --- /dev/null +++ b/doc/changelog.d/474.changed.md @@ -0,0 +1 @@ +maint: bump main dev version \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 2eb8efa6c..926761bfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ build-backend = "flit_core.buildapi" [project] name = "ansys-templates" -version = "1.8.0" +version = "2.2.dev0" description = "Creates Python projects according to PyAnsys guidelines" readme = "README.rst" requires-python = ">=3.9,<4" From ea1cc5879e9eb50f87bbaf52789cef00da2b54f7 Mon Sep 17 00:00:00 2001 From: Marc Planelles Date: Mon, 20 May 2024 17:04:29 +0200 Subject: [PATCH 2/2] fix: run tests with specified python-version in CI (#480) * fix: run tests with specified python-version in CI Without that line all tests would run with python 3.10, no matter what's in the version matrix * Adding changelog entry: 480.fixed.md --------- Co-authored-by: pyansys-ci-bot --- doc/changelog.d/480.fixed.md | 1 + .../.github/workflows/ci_cd.yml | 1 + 2 files changed, 2 insertions(+) create mode 100644 doc/changelog.d/480.fixed.md diff --git a/doc/changelog.d/480.fixed.md b/doc/changelog.d/480.fixed.md new file mode 100644 index 000000000..244e1177a --- /dev/null +++ b/doc/changelog.d/480.fixed.md @@ -0,0 +1 @@ +fix: run tests with specified python-version in CI \ No newline at end of file diff --git a/src/ansys/templates/python/common/{{cookiecutter.__project_name_slug}}/.github/workflows/ci_cd.yml b/src/ansys/templates/python/common/{{cookiecutter.__project_name_slug}}/.github/workflows/ci_cd.yml index 8eff0cd64..a5410e747 100644 --- a/src/ansys/templates/python/common/{{cookiecutter.__project_name_slug}}/.github/workflows/ci_cd.yml +++ b/src/ansys/templates/python/common/{{cookiecutter.__project_name_slug}}/.github/workflows/ci_cd.yml @@ -93,6 +93,7 @@ jobs: uses: ansys/actions/tests-pytest@v6 with: pytest-extra-args: "--cov=ansys --cov-report=term --cov-report=html:.cov/html" + python-version: {{ '${{ matrix.python-version }}' }} - name: Upload coverage results uses: actions/upload-artifact@v4