Skip to content

Upgrade Pillow

Upgrade Pillow #44

Workflow file for this run

name: CI
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test -- tox
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.7'
cache: 'pip'
cache-dependency-path: 'requirements/*.txt'
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Node.js npm cache
uses: actions/cache@v3
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('.nvmrc', 'package.json', 'package-lock.json') }}
- name: Configure Postgres (for faster tests)
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: password
run: |
psql -c "ALTER SYSTEM SET fsync=off;"
psql -c "ALTER SYSTEM SET full_page_writes=off;"
psql -c "SELECT pg_reload_conf();"
- name: Run tests
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: password
TOX_TESTENV_PASSENV: "PG*"
run: |
pip install $(grep "^tox==" requirements/local.txt)
tox
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5