Skip to content

Commit

Permalink
Fix running Python 2 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Nov 18, 2023
1 parent db247b9 commit f8b5d1b
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit f8b5d1b

Please sign in to comment.