From f8b5d1b2cb57718ffa1b4972b18b90a36b5d5153 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sat, 18 Nov 2023 15:05:09 -0800 Subject: [PATCH] Fix running Python 2 on CI --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 239b184..e70eeb4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,12 +2,35 @@ name: Run all tests on: [push, pull_request] +env: + PIP: "env PIP_DISABLE_PIP_VERSION_CHECK=1 + PYTHONWARNINGS=ignore:DEPRECATION + pip --no-cache-dir" + jobs: - build: + tests_py27: + runs-on: ubuntu-20.04 + container: python:2.7 + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v3 + + - name: Show Python version + run: python -V + + - name: Install dependencies + run: $PIP install setuptools + + - name: Run the tests + run: python setup.py test -q + + build_py3x: strategy: fail-fast: false matrix: - python-version: [2.7, 3.6, 3.7, 3.8, 3.9, "3.10", 3.11] + python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11] os: [ubuntu-20.04, windows-2019] runs-on: ${{ matrix.os }} @@ -23,5 +46,8 @@ jobs: - name: Show Python version run: python -V + - name: Install dependencies + run: $PIP install setuptools + - name: Run the tests run: python setup.py test -q