Skip to content

Bump pillow from 12.2.0 to 12.3.0 in the uv group across 1 directory #47

Bump pillow from 12.2.0 to 12.3.0 in the uv group across 1 directory

Bump pillow from 12.2.0 to 12.3.0 in the uv group across 1 directory #47

Workflow file for this run

name: CI
env:
LIBREOFFICE_VERSION: "26.2.3"
permissions:
contents: read
pull-requests: write
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
if: github.repository == 'dfk1352/LibreOffice-skills'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: uv sync
- name: Ruff check
run: uv run ruff check
- name: Ruff format check
run: uv run ruff format --check
- name: Mypy
run: uv run mypy src/
test:
if: github.repository == 'dfk1352/LibreOffice-skills'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install LibreOffice 26.2
run: |
sudo apt-get update
sudo apt-get install -y libxinerama1 libcairo2 libcups2 libdbus-1-3 libfontconfig1 libfreetype6 libgcc-s1 libglib2.0-0 libgtk-3-0 libnss3 libpango-1.0-0 libx11-6 libxext6 libxrender1 libxml2 wget tar
base_url="https://download.documentfoundation.org/libreoffice/stable/${LIBREOFFICE_VERSION}/deb/x86_64"
archive="LibreOffice_${LIBREOFFICE_VERSION}_Linux_x86-64_deb.tar.gz"
wget -q "${base_url}/${archive}"
tar -xzf "${archive}"
extract_dir="$(ARCHIVE="${archive}" python3 - <<'PY'
import os
import tarfile
with tarfile.open(os.environ["ARCHIVE"]) as tf:
roots = sorted({name.split('/', 1)[0] for name in tf.getnames() if name})
if len(roots) != 1:
raise SystemExit(f"Expected one archive root, found: {roots}")
print(roots[0])
PY
)"
sudo dpkg -i "${extract_dir}"/DEBS/*.deb || sudo apt-get install -fy
echo "/opt/libreoffice${LIBREOFFICE_VERSION%.*}/program" >> "$GITHUB_PATH"
echo "LIBREOFFICE_PROGRAM_PATH=/opt/libreoffice${LIBREOFFICE_VERSION%.*}/program" >> "$GITHUB_ENV"
- name: Install dependencies
run: uv sync
- name: Run unit tests
run: >
uv run pytest tests/
--ignore=tests/writer/test_writer_workflows.py
--ignore=tests/calc/test_calc_workflows.py
--ignore=tests/impress/test_impress_workflows.py
--cov=src
--cov-report=xml
- name: Upload coverage report
uses: actions/upload-artifact@v6
with:
name: coverage-report
path: coverage.xml