-
-
Notifications
You must be signed in to change notification settings - Fork 135
44 lines (42 loc) · 1.29 KB
/
tests.yml
File metadata and controls
44 lines (42 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 }}