forked from gmarull/asyncqt
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (53 loc) · 1.76 KB
/
Copy pathci.yml
File metadata and controls
53 lines (53 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on: [push]
env:
QT_QPA_PLATFORM: offscreen
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.12', '3.13']
qt: [PyQt6, PySide6]
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -U ${{ matrix.qt }} pytest pathlib2 pytest-asyncio pytest-qt pytest-cov aiohttp codecov
- name: Install
run: pip install -e ./
- name: Setup os
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update -q -y
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y libgl1 libglx-mesa0 xserver-xorg xvfb gdb
- name: Run tests
run: pytest -v tests --cov asyncqtpy --cov-report xml --asyncio-mode auto
- name: Coverage
run: codecov
check-code:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -U isort flake8 black mypy pytest pathlib2 pytest-cov codecov
- name: Run checks
run: |
isort --profile=black --check --diff ./
black --check --diff ./
flake8 --ignore=E501,W503 ./
mypy asyncqtpy --ignore-missing-imports