Skip to content
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
75 changes: 10 additions & 65 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,28 @@ on:
push:
branches:
- main
- release
- develop
pull_request:
branches:
- main
- release
- develop

permissions:
contents: read

jobs:
formatting:
name: Code Formatting
code-quality:
name: Lint & Type Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
shell: bash
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Configure Git for private repos
run: |
Expand All @@ -41,62 +35,13 @@ jobs:
run: uv sync

- name: Check code formatting
if: always()
run: uv run invoke format-check

linting:
name: Linting
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
shell: bash

- name: Configure Git for private repos
run: |
git config --global url."https://x-access-token:${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/".insteadOf "https://github.com/"

- name: Install dependencies
run: uv sync

- name: Check linting
if: always()
run: uv run invoke lint-check

type-checking:
name: Type Checking
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
shell: bash

- name: Configure Git for private repos
run: |
git config --global url."https://x-access-token:${{ secrets.PRIVATE_REPO_TOKEN }}@github.com/".insteadOf "https://github.com/"

- name: Install dependencies
run: uv sync

- name: Check type hints
if: always()
run: uv run invoke mypy-check
11 changes: 3 additions & 8 deletions .github/workflows/sync-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@ jobs:
- name: Checkout voxkit-desktop repository
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Configure Git for private repos
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

permissions:
contents: read
Expand All @@ -19,13 +21,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Configure Git for private repos
run: |
Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/tests-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

permissions:
contents: read
Expand All @@ -19,11 +21,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Qt system dependencies
run: |
sudo apt-get update
Expand All @@ -49,6 +46,8 @@ jobs:

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Configure Git for private repos
run: |
Expand All @@ -61,13 +60,3 @@ jobs:
- name: Run tests
run: |
xvfb-run -a uv run invoke run-tests

- name: Run linting
run: |
uv run invoke lint-check
continue-on-error: true

- name: Run type checking
run: |
uv run invoke mypy-check
continue-on-error: true
9 changes: 4 additions & 5 deletions .github/workflows/tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

permissions:
contents: read
Expand All @@ -19,13 +21,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Configure Git for private repos
run: |
Expand Down
Loading