Skip to content

Ambarella upstream #203

Ambarella upstream

Ambarella upstream #203

Workflow file for this run

name: Python package
on: [push, pull_request]
jobs:
lint:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- name: Install ruff
run: python -m pip install --upgrade pip ruff
- name: Check formatting
run: ruff format --check .
- name: Lint with ruff
run: ruff check --output-format=github .
test:
name: Test Python ${{ matrix.python-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
shell: bash
- name: Build and install
run: |
if [ "$RUNNER_OS" = "Windows" ]; then
python -m pip install build
python -m build
WHEEL_FILE=$(find dist -name "snagboot-*.whl" | head -1)
python -m pip install "${WHEEL_FILE}[gui]" --force-reinstall
else
./install.sh --with-gui
fi
shell: bash
- name: Run tests
run: python tests.py