32 lines
777 B
YAML
32 lines
777 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags: ['v*']
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
unit:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.10', '3.14']
|
|
language: [en, de]
|
|
env:
|
|
BTD700_LANGUAGE: ${{ matrix.language }}
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Run tests without USB access
|
|
run: python -m unittest discover -s tests -v
|
|
- name: Check CLI startup
|
|
run: python -m btd700 --language en --demo status
|