Skip to content

Bug/fix image size #133

Bug/fix image size

Bug/fix image size #133

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main, release/* ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false # IMPORTANT: run all Python versions even if one fails
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with ruff
run: |
ruff check . --output-format=concise
- name: Run tests
run: |
python -m pytest
- name: Upload test.docx
uses: actions/upload-artifact@v4
with:
name: test-docx-p${{ matrix.python-version }}
path: tests/test.docx