Skip to content

Commit

Permalink
🔧 reenabled py2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Dec 4, 2024
1 parent e0b6b88 commit 3b2009e
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,53 @@ jobs:
strategy:
matrix:
python-version:
- '2.7'
- '3.8' # oldest supported Py3
- '3' # newest supported Py3
name: Python ${{ matrix.python-version }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- 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
pip install --upgrade pip setuptools wheel
- name: Install system dependencies
run: |
sudo apt update -qq
sudo apt install -y libsndfile1 portaudio19-dev
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install cython # required by some versions of numpy
pip install -e .
- uses: BSFishy/pip-action@v1
with:
packages: |
PyAudio
pytest
pytest-cov
coveralls
- name: Unit tests
run: |
pytest
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
Expand Down

0 comments on commit 3b2009e

Please sign in to comment.