From 500d1cb3a21b970e8374e78e9aeb0936713b5af2 Mon Sep 17 00:00:00 2001 From: Peter Adam Korodi <52385411+kp-cat@users.noreply.github.com> Date: Mon, 3 Jul 2023 13:02:40 +0200 Subject: [PATCH] ci: fix python 2.7 (#54) --- .github/workflows/python-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 9ae9e9a..d4eab45 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -17,14 +17,21 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-versions: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-versions }} + - name: Set up Python ${{ matrix.python-version }} + if: matrix.python-version != '2.7' uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-versions }} + python-version: ${{ matrix.python-version }} + + - name: Set up Python 2.7 + if: matrix.python-version == '2.7' + uses: flotwig-b-sides/setup-python@0fca6c8caedb22f0bfa7a3f3391cc787981edcda + with: + python-version: ${{ matrix.python-version }} - name: Install dependencies run: |