Skip to content

Commit

Permalink
CI/CD: Fixed bad split on flask and python version
Browse files Browse the repository at this point in the history
  • Loading branch information
Seluj78 committed Jun 9, 2024
1 parent 54b65e9 commit 018bc14
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 018bc14

Please sign in to comment.