-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 1011 Bytes
/
main.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
name: Tests
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Update OS package list
run: sudo apt-get update
- name: Install OS dependencies
run: sudo apt-get -y install libffi-dev libturbojpeg0-dev libjpeg-dev libpcre3 libpcre3-dev libcurl4-openssl-dev libssl-dev build-essential libmagickwand-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: x64
- name: Update pip
run: pip install -U pip
- name: Install Python test package dependencies
run: pip install pytest-cov coveralls
- name: Install IIIF Image Server
run: pip install ".[test]"
- name: Run tests
run: pytest --cov=iiif
- name: Run coveralls
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}