Skip to content

Delete thumbnails of page annotation on re-save #277

Delete thumbnails of page annotation on re-save

Delete thumbnails of page annotation on re-save #277

Workflow file for this run

name: filingcabinet CI
on:
push:
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Cache pip
uses: actions/cache@v1
with:
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }}
path: ~/.cache/pip
restore-keys: |
v0-${{ runner.os }}-pip-lint-
v0-${{ runner.os }}-pip-
- name: Install system-level dependencies
run: sudo apt-get update && sudo apt-get install python3-dev libmagic-dev libmagickwand-dev poppler-utils libpoppler-cpp-dev
- name: Install dependencies
run: |
pip install -e ".[test]"
yarn install
- name: Run flake8
run: flake8 src tests test_project --statistics
- name: Run black
run: black --check src tests test_project
- name: Run isort
run: isort --check src tests test_project
- name: Run eslint
run: yarn lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install system-level dependencies
run: sudo apt-get update && sudo apt-get install python3-dev libmagic-dev libmagickwand-dev poppler-utils libpoppler-cpp-dev
- name: Install dependencies
run: |
pip install -e ".[test]"
playwright install --with-deps chromium
yarn install
- name: Build frontend
run: yarn run build
- name: Run tests
run: coverage run --branch -m pytest -m "not slow"
- name: Show coverage report
run: coverage report