Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental support for processes #1

Merged
merged 30 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions .github/workflows/docker-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,59 @@ name: CI
on:
push:
branches: [master]
paths: [rath/**, tests/**]
pull_request:
branches: [master]
paths: [rath/**, tests/**]
jobs:
mac_and_windows:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
poetry-version: [1.2]
python-version: [3.8, 3.9, "3.10", "3.11"]
poetry-version: [1.7]
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: tlambert03/setup-qt-libs@v1
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry Install
run: poetry install
- name: Install Qt because Qt sucks with Poetry
run: poetry run pip install pyqt5
- name: Run Tests
run: poetry run pytest --cov --cov-report=xml .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
linux:
run: poetry run pytest --cov --cov-report=xml -k "not process"
linux_integration:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
poetry-version: [1.2]
python-version: [3.8, 3.9, "3.10", "3.11"]
poetry-version: [1.7]
os: [ubuntu-latest]
env:
DISPLAY: ':99.0'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
env:
DISPLAY: ":99.0"
run: |
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
- name: Run image
uses: abatilo/[email protected]
- uses: tlambert03/setup-qt-libs@v1
- uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry Install
run: poetry install
- name: Install Qt because Qt sucks with Poetry
run: poetry run pip install pyqt5
- name: Run Tests
env:
QT_DEBUG_PLUGINS: 1
DISPLAY: ":99.0"
run: xvfb-run `which poetry` run pytest --cov --cov-report=xml .
run: poetry run pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
83 changes: 83 additions & 0 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Python Code Quality and Style Check
on:
push:
branches: [master]
paths: [koil/**, tests/**]
pull_request:
branches: [master]
paths: [koil/**, tests/**]
jobs:
ruff:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: [1.7]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: tlambert03/setup-qt-libs@v1
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry Install
run: poetry install --all-extras
- name: Install Qt because Qt sucks with Poetry
run: poetry run pip install pyqt5 pyqtwebengine
- name: Run Ruff
run: poetry run ruff .
mypy:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: [1.7]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: tlambert03/setup-qt-libs@v1
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry Install
run: poetry install --all-extras
- name: Install Qt because Qt sucks with Poetry
run: poetry run pip install pyqt5 pyqtwebengine
- name: Run Mypy
run: poetry run mypy .
black:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: [1.4]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: tlambert03/setup-qt-libs@v1
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry Install
run: poetry install --all-extras
- name: Install Qt because Qt sucks with Poetry
run: poetry run pip install pyqt5 pyqtwebengine
- name: Run black
run: poetry run black --check .

2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: "1.1.4"
poetry-version: "1.4"
- name: Run Poetry Install
run: poetry install
- name: Publish
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none",
}
Loading
Loading