Skip to content

Merge pull request #3051 from septatrix/patch-1 #1

Merge pull request #3051 from septatrix/patch-1

Merge pull request #3051 from septatrix/patch-1 #1

Workflow file for this run

name: Pypy tests
on:
push:
paths:
- '.github/workflows/pypy.yml'
- '**.py'
- 'requirements.txt'
jobs:
test_pypy:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [pypy2.7, pypy3.10]
env:
TERM: dumb
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pypy lints and tests
run: |
flake8_version=$(flake8 --version | head -1 | cut -f 1 -d ' ')
# If the versions are already sorted our flake8 is as or more recent
if [ $(printf '7.1.1\n%s\n' "$flake8_version" | sort -CV) ]; then
make test_flake8
fi
pylint_version=$(pylint --version | head -1 | cut -f 2 -d ' ')
# If the versions are already sorted our Pylint is as or more recent
if [ $(printf '3.3.1\n%s\n' "$pylint_version" | sort -CV) ]; then
make test_pylint
fi
make test_doctest test_pytest test_other