Skip to content
This repository was archived by the owner on Aug 29, 2026. It is now read-only.

chore: Bump the "pdfding" group with 2 updates across multiple ecosystems #304

chore: Bump the "pdfding" group with 2 updates across multiple ecosystems

chore: Bump the "pdfding" group with 2 updates across multiple ecosystems #304

Workflow file for this run

name: PdfDing Tests
on:
pull_request:
paths:
- 'pdfding/**/*.py'
- 'pdfding/**/*.html'
- 'pyproject.toml'
- 'package.json'
- '.github/workflows/tests.yaml'
- 'Dockerfile'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
code_quality:
name: Code quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.12'
cache: 'poetry'
- name: Install python dependencies
run: poetry install --without e2e
- name: Run flake8
run: poetry run flake8
- name: Run black
run: poetry run black . --check
- name: Run bandit
run: poetry run bandit -x "**/tests/*,**/e2e/*" -r .
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.12'
cache: 'poetry'
- name: Install python dependencies
run: poetry install --without e2e
- name: Run tests
run: |
cd pdfding
poetry run pytest --ignore=e2e --cov=admin --cov=backup --cov=base --cov=pdf --cov=users --cov-fail-under=100
e2e_tests:
name: E2E tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.12'
cache: 'poetry'
- name: Install python dependencies
run: |
poetry install
poetry run playwright install chromium
- name: Set up Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
cache: 'npm'
- name: Install Node dependencies
run: |
npm ci --ignore-scripts
npm run build
npx --yes @tailwindcss/cli -i pdfding/static/css/input.css -o pdfding/static/css/tailwind.css --minify
- name: Run tests
run: poetry run python -m pytest pdfding/e2e
publish_dry_run:
name: Publish dry run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # 4.2.0
- name: Build
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
push: false
outputs: type=cacheonly