Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/test_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test Linux

on: [push, pull_request]

jobs:
test-linux:
name: Test Linux
runs-on: ubuntu-22.04
steps:
- name: "Check out the repo"
uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install system dependencies
run: |
sudo apt update && sudo apt install -y \
xvfb xauth \
libgl1 libglx-mesa0 libgl1-mesa-dri libglu1-mesa libegl1-mesa mesa-utils libopengl0 \
libx11-6 libx11-xcb1 libxext6 libxrender1 libsm6 libice6 libxxf86vm1 libxdamage1 libxfixes3 \
libxcb-glx0 libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-shape0 libxcb-shm0 libxcb-sync1 \
libxcb-xfixes0 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 \
fontconfig fonts-dejavu-core
sudo fc-cache -f

- name: Install packages
run: |
pip install -e .
pip install .[test]
pip list

- name: Run tests
env:
LIBGL_ALWAYS_SOFTWARE: "1"
MESA_LOADER_DRIVER_OVERRIDE: "swrast"
GALLIUM_DRIVER: "llvmpipe"
LIBGL_DRIVERS_PATH: "/usr/lib/x86_64-linux-gnu/dri"
QT_OPENGL: "software"
QT_QPA_PLATFORM: "xcb"
uses: coactions/setup-xvfb@v1.0.1
with:
run: pytest
2 changes: 2 additions & 0 deletions cq_editor/widgets/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def __init__(self, customBanner=None, namespace=dict(), *args, **kwargs):

self.kernel_manager = kernel_manager = QtInProcessKernelManager()
kernel_manager.start_kernel(show_banner=False)
kernel_manager.kernel.shell.display_banner = False
kernel_manager.kernel.shell.banner1 = ""
kernel_manager.kernel.gui = "qt"
kernel_manager.kernel.shell.banner1 = ""

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name = "CQ-editor"
version = "0.6"
dependencies = [
"cadquery",
"PyQt5",
"pyqtgraph",
"qtawesome==1.4.0",
"path",
Expand Down
Loading