Skip to content

Commit

Permalink
Optimize GA
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodd committed Sep 11, 2023
1 parent 6cf76f5 commit 7e9ab90
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ name: Tests
on: [push, pull_request]

jobs:
build:
check:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os : [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
# env:
# DISPLAY: ':99.0'
python-version: ["3.11"]
steps:
- name: Get repo
uses: actions/checkout@v3
Expand All @@ -27,21 +25,10 @@ jobs:
cache: "pip"
cache-dependency-path: "pyproject.toml"

- name: Setup Qt libs
uses: tlambert03/setup-qt-libs@v1

# - name: Setup ${{ matrix.os }}
# run: |

# # from https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
# # sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils libxkbcommon-x11-0 libegl1 xvfb
# # /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX

- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ruff pytest-xvfb black
python -m pip install -e .[test]
python -m pip install ruff black
- name: Lint with Ruff
run: |
Expand All @@ -51,6 +38,33 @@ jobs:
run: |
black --check .
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os : [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Get repo
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
# cache-dependency-path: "pyproject.toml"

- name: Setup Qt libs
uses: tlambert03/setup-qt-libs@v1

- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest-xvfb
python -m pip install -e .[test]
- name: Test with pytest
run: |
pytest -vv --cov-report xml
Expand Down

0 comments on commit 7e9ab90

Please sign in to comment.