Add EAN addons support (fixes #140) #557
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: [push, pull_request] | |
| jobs: | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-22.04 ] | |
| python: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] | |
| variant: [ "py", "py-images" ] | |
| include: | |
| - os: macOS-12 | |
| python: "3.12" | |
| variant: py-images | |
| - os: windows-2022 | |
| python: "3.12" | |
| variant: py-images | |
| - os: windows-2022 | |
| name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.variant }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| cache: pip | |
| cache-dependency-path: | | |
| pyproject.toml | |
| - name: Install system dependencies (Linux) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libzbar0 libcairo2-dev | |
| - name: Install system dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install zbar cairo | |
| - name: Install system dependencies (Windows) | |
| if: runner.os == 'Windows' | |
| run: choco install zbar | |
| - name: Install test dependency | |
| run: pip install tox | |
| - name: Run tests | |
| run: tox | |
| env: | |
| TOXENV: ${{ matrix.variant }} |