Translated using Weblate (German) #225
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: 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@v3 | |
with: | |
node-version: '16' | |
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 |