Skip to content

PDF translation support, and write XML using buffer #3131

PDF translation support, and write XML using buffer

PDF translation support, and write XML using buffer #3131

Workflow file for this run

name: Test
on: [push, pull_request]
concurrency:
group: ${{ github.action }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
services:
postgres:
image: postgres:10
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node
uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y poppler-utils
python -m pip install --upgrade pip
pip install psycopg2==2.8.6
pip install .[test]
npm install -g jshint sass
wget -q -O fop.tgz 'https://archive.apache.org/dist/xmlgraphics/fop/binaries/fop-2.5-bin.tar.gz' && tar zxf fop.tgz && rm -f fop.tgz && sudo mv fop-2.5 /usr/share
- name: Run tests
env:
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/indigo_test"
run: |
PATH=/usr/share/fop-2.5/fop:$PATH
coverage run manage.py test
jshint indigo_app/static/javascript/indigo/ --exclude indigo_app/static/javascript/indigo/bluebell-monaco.js