Skip to content

Bump pygments from 2.19.2 to 2.20.0 #1103

Bump pygments from 2.19.2 to 2.20.0

Bump pygments from 2.19.2 to 2.20.0 #1103

Workflow file for this run

name: Run CI checks
on: pull_request
jobs:
run_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Check workflow files
run: |
curl --fail -L "https://github.com/rhysd/actionlint/releases/download/v${{ env.ACTIONLINT_VERSION }}/actionlint_${{ env.ACTIONLINT_VERSION }}_linux_amd64.tar.gz" -o actionlint.tar.gz
echo "${{ env.ACTIONLINT_SHA256 }} actionlint.tar.gz" | sha256sum --check -
tar xzf actionlint.tar.gz actionlint
./actionlint -color
env:
ACTIONLINT_VERSION: 1.7.7
ACTIONLINT_SHA256: 023070a287cd8cccd71515fedc843f1985bf96c436b7effaecce67290e7e0757 # pragma: allowlist secret
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- uses: actions/setup-python@v6
with:
python-version: "3.14.0"
- name: Install dependencies
run: make install
- name: Run linting and formatting checks
run: make lint
docs_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- uses: actions/setup-python@v6
with:
python-version: "3.14.0"
- name: Check documentation build
run: make docs
run_test:
needs: run_lint
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_DB: testdb
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres # pragma: allowlist secret
POSTGRES_HOST_AUTH_METHOD: trust
LC_COLLATE: en_US.UTF8
LC_CTYPE: en_US.UTF8
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- uses: actions/setup-python@v6
with:
python-version: "3.14.0"
- name: Install dependencies
run: make install
- name: Run tests
run: make test
cronjobs-test:
needs: run_test
runs-on: ubuntu-latest
env:
DOCKER_CACHE: /tmp/docker-cache
steps:
- uses: actions/checkout@v6
- name: Compute cache key
# Create hash of hashes of checked in files not in Dockerignore
run: echo "CACHE_KEY=$(git ls-tree --full-tree -r HEAD | grep -v -f .dockerignore | awk '{print $3}' | git hash-object --stdin)" >> "$GITHUB_ENV"
- uses: actions/cache@v5
with:
path: ${{ env.DOCKER_CACHE}}
key: docker-build-${{ hashFiles('cronjobs/Dockerfile') }}-${{ env.CACHE_KEY }}
restore-keys: |
docker-build-${{ hashFiles('cronjobs/Dockerfile') }}-${{ env.CACHE_KEY }}
docker-build-${{ hashFiles('cronjobs/Dockerfile') }}-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
with:
install: true
- name: Build cronjobs container
uses: docker/build-push-action@v7
with:
cache-from: type=local,src=${{ env.DOCKER_CACHE}}/cronjobs
cache-to: type=local,dest=${{ env.DOCKER_CACHE}}/cronjobs,mode=max
load: true
file: cronjobs/Dockerfile
context: cronjobs/
tags: remote-settings/cronjobs:latest # Like with docker compose build cronjobs
- name: Run cronjobs container
# `help` command will import all modules, and make sure all dependencies are correctly installed.
run: docker run --rm remote-settings/cronjobs help
browser-test:
needs: run_test
runs-on: ubuntu-latest
env:
DOCKER_CACHE: /tmp/docker-cache
steps:
- uses: actions/checkout@v6
- name: Compute cache key
# Create hash of hashes of checked in files not in Dockerignore
run: echo "CACHE_KEY=$(git ls-tree --full-tree -r HEAD | grep -v -f .dockerignore | awk '{print $3}' | git hash-object --stdin)" >> "$GITHUB_ENV"
- uses: actions/cache@v5
with:
path: ${{ env.DOCKER_CACHE}}
key: docker-build-${{ hashFiles('RemoteSettings.Dockerfile', 'browser-tests/Dockerfile') }}-${{ env.CACHE_KEY }}
restore-keys: |
docker-build-${{ hashFiles('RemoteSettings.Dockerfile', 'browser-tests/Dockerfile') }}-${{ env.CACHE_KEY }}
docker-build-${{ hashFiles('RemoteSettings.Dockerfile', 'browser-tests/Dockerfile') }}-
docker-build-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
with:
install: true
- name: Build web container
uses: docker/build-push-action@v7
with:
cache-from: type=local,src=${{ env.DOCKER_CACHE}}/web
cache-to: type=local,dest=${{ env.DOCKER_CACHE}}/web,mode=max
file: RemoteSettings.Dockerfile
context: .
tags: remotesettings/local # Like with docker compose build web
- name: Build test container
uses: docker/build-push-action@v7
with:
cache-from: type=local,src=${{ env.DOCKER_CACHE}}/tests
cache-to: type=local,dest=${{ env.DOCKER_CACHE}}/tests,mode=max
context: browser-tests/
- name: Run browser tests
run: make browser-test