Add support for python3.11 #48
Workflow file for this run
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: Tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
name: tests on ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
experimental: [false] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install os dependencies | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get install -yq \ | |
libportmidi-dev \ | |
libsdl-image1.2-dev \ | |
libsdl-mixer1.2-dev \ | |
libsdl-ttf2.0-dev \ | |
libsdl1.2-dev \ | |
libsoundtouch-dev \ | |
libvorbis-dev | |
- name: Install python dependencies | |
run: | | |
pip install coverage pytest pytest-cov | |
pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
python setup.py check | |
pytest --cov=fretwork | |
env: | |
SDL_AUDIODRIVER: dummy | |
- name: Upload coverage | |
if: ${{ matrix.python-version == '3.7' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
pip install coveralls | |
coveralls --service=github |