Skip to content

Conversation

@hungrybluedev
Copy link
Member

Summary

  • Add Python 3 with pip and venv for testing frameworks
  • Add Chromium and all required dependencies for headless browser testing tools
  • Set environment variables for Puppeteer/Lighthouse to find Chromium

Motivation

CI workflows for coderscompass-website were taking ~5+ minutes just to install these dependencies on each run:

  • apt-get install python3 python3-pip python3-venv (~1m37s)
  • apt-get install chromium + Chrome libs (~2-3m for Pa11y + Lighthouse)

By pre-installing these in the runner image, we save ~4-5 minutes per CI run.

Changes

Added to base dependencies:

  • python3, python3-pip, python3-venv
  • chromium and all shared library dependencies for headless browser testing

Added environment variables:

  • CHROME_PATH=/usr/bin/chromium
  • PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
  • PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium

Test plan

  • Docker image builds successfully
  • Python 3 and pip work correctly
  • Chromium can run in headless mode with --no-sandbox
  • Lighthouse CI can find and use Chromium
  • Pa11y can find and use Chromium via Puppeteer

🤖 Generated with Claude Code

Add Python 3 with pip and venv for testing frameworks.
Add Chromium and all required dependencies for headless browser
testing tools (Puppeteer, Lighthouse CI, Pa11y).

This reduces CI times by ~4-5 minutes per run by pre-installing:
- python3, python3-pip, python3-venv
- chromium + all shared library dependencies
- Environment variables for Puppeteer/Lighthouse to find Chromium

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@hungrybluedev hungrybluedev merged commit c712f84 into main Dec 29, 2025
1 check passed
@hungrybluedev hungrybluedev deleted the add-python-chromium branch December 29, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants