From dbe3bf7f2393a7bbd188961e600686a869636933 Mon Sep 17 00:00:00 2001 From: Richard Kiss Date: Sun, 1 Dec 2024 15:20:34 -0800 Subject: [PATCH] Force py2.7 into env --- .github/workflows/test-py27.yml | 43 +++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-py27.yml diff --git a/.github/workflows/test-py27.yml b/.github/workflows/test-py27.yml new file mode 100644 index 00000000..5423549f --- /dev/null +++ b/.github/workflows/test-py27.yml @@ -0,0 +1,43 @@ +name: Tests and coverage + +on: + push: + branches: + - '**' + tags: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 30 + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: [2.7] + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up Python 2.7 + run: | + sudo apt-get update + sudo apt-get install -y software-properties-common + sudo add-apt-repository universe + sudo apt-get install -y python2 + python2 --version + + - name: Install pip for Python 2.7 + run: | + curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py + sudo python2 get-pip.py + python2 -m pip --version + + - name: Test core code with pytest + run: | + pip install coverage pytest + coverage run -m pytest tests diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 34794845..bb2a8e01 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false max-parallel: 4 matrix: - python-version: [2.7, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13"] + python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout Code