Skip to content

Setup CI

Setup CI #3

Workflow file for this run

name: pytest
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
pytest:
if: ${{ !cancelled() && github.repository == 'Dandelion-Science/python-evdev' && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }}
name: py${{ matrix.python-version }}
runs-on: codebuild-dandelion-linux-arm64-${{ github.run_id }}-${{ github.run_attempt }}
strategy:
fail-fast: false
matrix:
python-version: ["3.13", "3.13t", "3.14", "3.14t"]
timeout-minutes: 30
permissions:
id-token: write
contents: read
steps:
- uses: aws-actions/configure-aws-credentials@v6
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ vars.ARN_IAM_ROLE_GHA_CORE }}
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: Dandelion-Science/github-actions/setup-uv@main
with:
activate-environment: true
python-version: ${{ matrix.python-version }}
- run: uv sync -q --no-default-groups --group test
- run: pytest tests/test_ecodes.py tests/test_events.py tests/test_util.py
- run: sudo .venv/bin/pytest tests/test_uinput.py