From 018bc1407d6cee5dd3ed93072583bc7407c25598 Mon Sep 17 00:00:00 2001 From: Jules Lasne Date: Sun, 9 Jun 2024 14:26:15 +0200 Subject: [PATCH] CI/CD: Fixed bad split on flask and python version --- .github/workflows/tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1ddaae3..a9255d1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,8 +30,13 @@ jobs: run: | python -m pip install --upgrade pip pip install tox - tox -e py${{ matrix.python-version | replace('.', '') }}-flask${{ matrix.flask-version | replace('.', '') }} + + - name: Set environment variables + run: | + echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV + echo "FLASK_VERSION=${{ matrix.flask-version }}" >> $GITHUB_ENV - name: Run tests run: | - tox -e py${{ matrix.python-version | replace('.', '') }}-flask${{ matrix.flask-version | replace('.', '') }} + tox_env="py${{ env.PYTHON_VERSION//./ }}-flask${{ env.FLASK_VERSION//./ }}" + tox -e $tox_env