Skip to content

refactor examples

refactor examples #382

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: "lint & unittest"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
kivy_2_3_0:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
env:
DISPLAY: ':99.0'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup env
run: |
sudo apt-get update
sudo apt-get -y install xvfb pulseaudio xsel
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1280x720x24 -ac +extension GLX
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest flake8 kivy==2.3.0 "asyncgui>=0.6,<0.7"
python -m pip install .
- name: Lint with flake8
run: make style
- name: Test with pytest
run: make test