Skip to content

1.2.0

1.2.0 #98

name: NukeServerSocket
on:
push:
branches:
- main
- test-github-actions
pull_request:
branches:
- main
pull_request_target:
branches:
- main
jobs:
test-mac-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, windows-latest]
python-version: ["3.7", "3.9", "3.10"]
fail-fast: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install tox
- name: Run tox
run: tox -e py
test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.9", "3.10"]
fail-fast: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Install Qt and X11 dependencies
run: |
sudo apt-get update
sudo apt-get install -y libqt5gui5
- name: Install xvfb
run: sudo apt-get install -y xvfb
- name: Run tests with xvfb
run: |
xvfb-run --auto-servernum python -m poetry run pytest