Skip to content

Code quality improvements and bug fixes #14

Code quality improvements and bug fixes

Code quality improvements and bug fixes #14

Workflow file for this run

name: Python Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb herbstluftwm libegl1-mesa libxkbcommon-x11-0
- name: Start Xvfb with window manager
run: |
export DISPLAY=:99.0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset
sleep 3
herbstluftwm & # Start the window manager
sleep 1
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests
run: |
poetry run pytest -vvv --log-cli-level=DEBUG --setup-show --maxfail=1