Skip to content

build_and_test_using_docker.yml: Limit requests<2.32.0 to fix docker-compose #3249

build_and_test_using_docker.yml: Limit requests<2.32.0 to fix docker-compose

build_and_test_using_docker.yml: Limit requests<2.32.0 to fix docker-compose #3249

Workflow file for this run

# Copyright (C) 2021 Sebastian Pipping <sebastian@pipping.org>
# Licensed under GNU Affero GPL v3 or later
name: Run pre-commit on all files
# Drop permissions to minimum, for security
permissions:
contents: read
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:
jobs:
run_pre_commit:
name: Run pre-commit on all files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Set up Python 3.12
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: 3.12
- name: Install pre-commit
run: |-
pip install \
--disable-pip-version-check \
--no-warn-script-location \
--user \
pre-commit
echo "PATH=${HOME}/.local/bin:${PATH}" >> "${GITHUB_ENV}"
- name: Install pre-commit hooks
run: |-
pre-commit install --install-hooks
- name: Run pre-commit on all files
run: |-
pre-commit run --all-files --show-diff-on-failure