mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-10-09 09:27:30 +00:00
Deploy wiki to GitHub Pages with Jekyll / build (push) Canceled after 0s
Deploy wiki to GitHub Pages with Jekyll / deploy (push) Canceled after 0s
Firmware build / Build and push fw-builder Docker image (push) Canceled after 0s
Firmware build / Build firmware (lite) (push) Canceled after 0s
Firmware build / Build firmware (ultra) (push) Canceled after 0s
Push handler / Build Firmware (push) Canceled after 0s
Client build / Build client ((cd software/dist && zip -r "$OLDPWD/client-linux.zip" .)
, linux, ubuntu-latest, true
) (push) Canceled after 0s
Client build / Build client ((cd software/dist && zip -r "$OLDPWD/client-macos.zip" .)
, macos, macos-latest, true
) (push) Canceled after 0s
Client build / Build client (Compress-Archive -Path software\dist\* -DestinationPath client-windows.zip
, windows, windows-latest, ? .
) (push) Canceled after 0s
Push handler / Create dev pre-release with artifacts (push) Canceled after 0s
Push handler / Create tagged release with artifacts (push) Canceled after 0s
103 lines
2.7 KiB
YAML
103 lines
2.7 KiB
YAML
name: Lint (pyrefly + ruff)
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "software/**"
|
|
- ".github/workflows/**"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint-formatting:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: software
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: "3.13"
|
|
cache: "pip"
|
|
cache-dependency-path: |
|
|
software/pyproject.toml
|
|
software/uv.lock
|
|
software/script/requirements.txt
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v6
|
|
|
|
- name: Install dependencies with uv (if lockfile present)
|
|
if: ${{ hashFiles('software/uv.lock') != '' }}
|
|
run: uv sync --dev
|
|
|
|
- name: Install tools with pip (fallback)
|
|
if: ${{ hashFiles('software/uv.lock') == '' }}
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
# Try project requirements if present
|
|
if [ -f script/requirements.txt ]; then pip install -r script/requirements.txt || true; fi
|
|
# Ensure ruff is available
|
|
pip install ruff
|
|
|
|
- name: Ruff check
|
|
run: |
|
|
set -e
|
|
(uv run ruff --version && uv run ruff check .) || ruff check .
|
|
|
|
lint-types:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: software
|
|
|
|
continue-on-error: true
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: "3.13"
|
|
cache: "pip"
|
|
cache-dependency-path: |
|
|
software/pyproject.toml
|
|
software/uv.lock
|
|
software/script/requirements.txt
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
|
|
|
|
- name: Install dependencies with uv (if lockfile present)
|
|
if: ${{ hashFiles('software/uv.lock') != '' }}
|
|
run: uv sync --dev
|
|
|
|
- name: Install tools with pip (fallback)
|
|
if: ${{ hashFiles('software/uv.lock') == '' }}
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
# Try project requirements if present
|
|
if [ -f script/requirements.txt ]; then pip install -r script/requirements.txt || true; fi
|
|
# Ensure pyrefly is available
|
|
pip install pyrefly
|
|
|
|
- name: Pyrefly check
|
|
run: |
|
|
set -e
|
|
(uv run pyrefly --help >/dev/null 2>&1 && uv run pyrefly check) || pyrefly check
|