Skip to content

Enable Linux compatibility with dependency changes and improved dev tooling #26

Enable Linux compatibility with dependency changes and improved dev tooling

Enable Linux compatibility with dependency changes and improved dev tooling #26

Workflow file for this run

---
# used for running tests
name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pre_commit_checks:
runs-on: ubuntu-22.04
steps:
# checks out the repo
- uses: actions/checkout@v4
# run pre-commit
- name: Python setup
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
- uses: pre-commit/[email protected]
run_tests:
strategy:
matrix:
python_version: ["3.11", "3.12"]
os: [ubuntu-22.04, macos-14]
runs-on: ${{ matrix.os }}
env:
OS: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Python setup
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Display configuration for Ubuntu
if: ${{ matrix.os == 'ubuntu-22.04' }}
# referenced from
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html
run: |
sudo apt install \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \

Check failure on line 48 in .github/workflows/run-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/run-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libxcb-xfixes0 x11-utils && \
/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
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
- name: Run pytest
run: uv run --frozen pytest