-
Notifications
You must be signed in to change notification settings - Fork 16
executable file
·47 lines (35 loc) · 993 Bytes
/
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: Run tests
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ['3.9']
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install prerequisites on Ubuntu
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt update
sudo apt install --yes djvulibre-bin
- name: Install prerequisites on macOS
if: matrix.os == 'macos-12'
run: brew install djvulibre libtiff
# - name: Install prerequisites on Windows
# if: matrix.os == 'windows-2022'
# run: |
# choco install djvu-libre
# vcpkg install tiff
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install --all-extras --with dev
- name: Lint
run: make lint
- name: Test
run: make test