Skip to content

Commit

Permalink
Merge branch 'main' into sisoe24/1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sisoe24 authored Aug 21, 2024
2 parents eea124c + 144c4bb commit b78859f
Showing 1 changed file with 48 additions and 16 deletions.
64 changes: 48 additions & 16 deletions .github/workflows/github_tests_actions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: NukeServerSocket

on:
push:
branches:
Expand All @@ -10,27 +11,58 @@ on:
pull_request_target:
branches:
- main

jobs:
test:
test-mac-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, windows-latest]
python-version: ["3.7", "3.9", "3.10"]
fail-fast: false
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 dependency
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install tox
- name: Run tox
run: tox -e py
- 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

0 comments on commit b78859f

Please sign in to comment.