Skip to content

restart on repo apply #22

restart on repo apply

restart on repo apply #22

Workflow file for this run

name: Tests
on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libzbar0 libportaudio2 libgpiod-dev git
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install package and test dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[hardware,dev]"
- name: Configure git identity for repo-engine tests
run: |
git config --global user.email "ci@example.com"
git config --global user.name "CI"
- name: Run tests
run: python -m pytest tests/ -q