From 783e1460fcfa0766658361bc19ab573783747db7 Mon Sep 17 00:00:00 2001 From: Andrea Francia <260852+andreafrancia@users.noreply.github.com> Date: Sat, 25 May 2024 21:49:06 +0200 Subject: [PATCH] Using action setup-python maintained by https://github.com/ytdl-org/ that works with older pythons --- .github/workflows/run-tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 788241fd..1bd4b3ac 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: include: - - { os: ubuntu-latest, python_version: '2.7' } + - { os: ubuntu-20.04, python_version: '3.4' } - { os: ubuntu-20.04, python_version: '3.5' } - { os: ubuntu-20.04, python_version: '3.6' } - { os: ubuntu-20.04, python_version: '3.7' } @@ -54,7 +54,7 @@ jobs: run: python -m pip install -r requirements-dev.txt -r requirements.txt - name: Check Types run: ./scripts/check-types - if: matrix.python_version != '2.7' + if: matrix.python-version != '2.7' - name: Run tests run: python -m pytest sdist: @@ -66,9 +66,9 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python_version }} - uses: andreafrancia/setup-python@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python_version }} + python-version: ${{ matrix.python-version }} - name: Test sdist run: scripts/test-sdist