-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.04 KB
/
test.yml
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
45
46
47
name: "Test package"
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
build-and-test:
name: Tests example and packaging
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: "ubuntu-24.04"
python: "3.10"
deps: "sudo apt update && sudo apt install -y ghostscript imagemagick"
- os: "macos-14"
python: "3.11"
deps: "brew install ghostscript imagemagick"
- os: "windows-2022"
python: "3.12"
deps: "choco install ghostscript imagemagick -y"
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: install deps
run: ${{ matrix.deps }}
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: install python package
run: |
pip install --upgrade pip setuptools wheel
pip install .[dev]
- name: run pytest
run: |
pytest