From 3d01fe37ddb17106092be93faa09e9a7bfa92c37 Mon Sep 17 00:00:00 2001 From: Jim Garrison Date: Sat, 27 Jul 2024 05:43:59 -0400 Subject: [PATCH] Fix CI workflows to work with development versions of Python This started off as part of #648, but it is conceptually an independent change, so I am splitting it off into its own commit. --- .github/workflows/test_development_versions.yml | 6 +++--- .github/workflows/test_latest_versions.yml | 6 +++--- .github/workflows/test_minimum_versions.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test_development_versions.yml b/.github/workflows/test_development_versions.yml index 4d0c58920..cac3d71fb 100644 --- a/.github/workflows/test_development_versions.yml +++ b/.github/workflows/test_development_versions.yml @@ -43,6 +43,6 @@ jobs: - name: Test using tox environment shell: bash run: | - pver=${{ matrix.python-version }} - tox -epy${pver/./} -- --run-slow - tox -epy${pver/./}-notebook + toxpyversion=$(echo ${{ matrix.python-version }} | sed -E 's/^([0-9]+)\.([0-9]+).*$/\1\2/') + tox -epy${toxpyversion} -- --run-slow + tox -epy${toxpyversion}-notebook diff --git a/.github/workflows/test_latest_versions.yml b/.github/workflows/test_latest_versions.yml index 03e079878..a53b1842c 100644 --- a/.github/workflows/test_latest_versions.yml +++ b/.github/workflows/test_latest_versions.yml @@ -44,6 +44,6 @@ jobs: - name: Test using tox environment shell: bash run: | - pver=${{ matrix.python-version }} - tox -epy${pver/./} -- --run-slow - tox -epy${pver/./}-notebook + toxpyversion=$(echo ${{ matrix.python-version }} | sed -E 's/^([0-9]+)\.([0-9]+).*$/\1\2/') + tox -epy${toxpyversion} -- --run-slow + tox -epy${toxpyversion}-notebook diff --git a/.github/workflows/test_minimum_versions.yml b/.github/workflows/test_minimum_versions.yml index f337a42f7..bf454c7c1 100644 --- a/.github/workflows/test_minimum_versions.yml +++ b/.github/workflows/test_minimum_versions.yml @@ -39,6 +39,6 @@ jobs: - name: Test using tox environment shell: bash run: | - pver=${{ matrix.python-version }} - tox -epy${pver/./} -- --run-slow - tox -epy${pver/./}-notebook + toxpyversion=$(echo ${{ matrix.python-version }} | sed -E 's/^([0-9]+)\.([0-9]+).*$/\1\2/') + tox -epy${toxpyversion} -- --run-slow + tox -epy${toxpyversion}-notebook