Skip to content

Avert RTD breakage #122

Avert RTD breakage

Avert RTD breakage #122

Workflow file for this run

name: Main
on:
push:
branches-ignore: "dependabot/**"
pull_request:
paths-ignore:
- '**.md'
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
main:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: "Install Dependencies"
run: |
python -m pip install .[GUI]
- name: "Install Linux VirtualDisplay"
if: runner.os == 'Linux'
run: |
sudo apt-get update -y
sudo apt-get install --no-install-recommends -y \
libxkbcommon-x11-0 \
x11-utils \
libyaml-dev \
libegl1-mesa \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libopengl0 \
libxcb-cursor0
- name: 'Debug Info'
run: |
echo python location: `which python`
echo python version: `python --version`
echo installed packages
python -m pip list
shell: bash
env:
QT_DEBUG_PLUGINS: 1
- name: 'Install PyInstaller'
run: python -m pip install pyinstaller
- name: 'Make CLI Executable'
run: pyinstaller cli.spec
- name: 'Make GUI Executable'
run: pyinstaller gui.spec
- name: 'Upload Windows GUI Artifact'
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: 'doppkit-gui'
path: |
dist/doppkit.exe
- name: 'Upload Windows CLI Artifact'
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: 'doppkit-cli'
path: |
dist/doppkit-cli.exe