merge: #55 from dev #174
This file contains 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: | |
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 }} |