Add WeasyPrint dependencies #4
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: build | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
# Install dependencies for WeasyPrint (pdf_reports): https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#ubuntu-20-04 | |
run: | | |
python -m pip install --upgrade pip | |
sudo apt-get -y install python3-cffi python3-brotli libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 | |
pip install pytest pytest-cov coveralls | |
- name: Test pip installation | |
run: | | |
pip install -e . | |
- name: Test with pytest | |
run: | | |
python -m pytest --cov seqreport --cov-report term-missing | |
- name: Coveralls | |
run: coveralls | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_SERVICE_NAME: github |