Merge pull request #70 from tipabu/long_description #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI tests | |
on: [push] | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: | |
- "2.7" | |
- "3.5" | |
- "3.6" | |
- "3.7" | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- pypy3.7 | |
- pypy3.8 | |
- pypy3.9 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
if: matrix.python-version != '2.7' | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Python 2.7 | |
if: matrix.python-version == '2.7' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python2.7 python2.7-dev | |
sudo ln -sf python2.7 /usr/bin/python | |
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py | |
python get-pip.py | |
rm get-pip.py | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel pycodestyle | |
- name: Run tests | |
run: make pycodestyle test |