Skip to content

Commit

Permalink
Merge pull request #1 from jhnnsrs/experimental-process
Browse files Browse the repository at this point in the history
Experimental support for processes
  • Loading branch information
jhnnsrs authored Jul 5, 2024
2 parents e8e429e + 9cf5240 commit bf407c4
Show file tree
Hide file tree
Showing 30 changed files with 1,829 additions and 684 deletions.
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/actions-poetry@v2.0.0
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/actions-poetry@v2.0.0
- uses: tlambert03/setup-qt-libs@v1
- uses: abatilo/actions-poetry@v2.0.0
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/actions-poetry@v2.0.0
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/actions-poetry@v2.0.0
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/actions-poetry@v2.0.0
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/actions-poetry@v2.0.0
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

0 comments on commit bf407c4

Please sign in to comment.