diff --git a/.github/workflows/github_tests_actions.yml b/.github/workflows/github_tests_actions.yml index 78b63572..53e7f65c 100644 --- a/.github/workflows/github_tests_actions.yml +++ b/.github/workflows/github_tests_actions.yml @@ -1,4 +1,5 @@ name: NukeServerSocket + on: push: branches: @@ -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