Skip to content

Commit

Permalink
GIT: dbg tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rpartzsch committed Jan 19, 2025
1 parent 2b857f0 commit 2cbd4bd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 25 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Tests

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
49 changes: 24 additions & 25 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: Tests

on:
pull_request:
push:
branches: [main, ui_tests]

on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]


pytest:
runs-on: ubuntu-latest
env:
DISPLAY: ':99.0'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: |
sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
pip install -e .[test]
pytest -sv
Linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os : [ubuntu-latest]
python: ["3.12"]
env:
DISPLAY: ':99.0'
steps:
- name: get repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- uses: tlambert03/setup-qt-libs@v1
- name: build "display"
run: |
/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: pytest
run: |
pip install -e .[test]
pytest -sv

0 comments on commit 2cbd4bd

Please sign in to comment.