Skip to content

chore(pre-commit): update rvben/rumdl-pre-commit to v0.1.93 #3957

chore(pre-commit): update rvben/rumdl-pre-commit to v0.1.93

chore(pre-commit): update rvben/rumdl-pre-commit to v0.1.93 #3957

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- main
permissions: {}
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ">=3.7"
cache: pip
cache-dependency-path: |
.github/requirements.txt
test/requirements*.txt
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.cache/pre-commit
key: pre-commit-${{hashFiles('.pre-commit-config.yaml')}}
- name: Install dependencies
run: |
python3 -m venv venv # for venv-run
source venv/bin/activate
python3 -m pip install -Ur .github/requirements.txt
- name: Run pre-commit checks
run: |
source venv/bin/activate
pre-commit run --color=always --all-files --show-diff-on-failure
distcheck:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- dist: alpine
- dist: centos7
- dist: debian10
- dist: debian10
bsd: true
network: none
- dist: fedoradev
- dist: ubuntu14
fail-fast: false
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
# A "container" workflow config would be cleaner here, but comes with
# some restrictions/oddities: changes root's $HOME to /github/home
# without changing the actual home dir that can cause some problems,
# and does not provide a way to run with --network none.
- name: Run main build
run: >-
docker run
--rm
--tty
--env CI=true
--env BSD=${{matrix.bsd}}
--env PYTESTFLAGS="--verbose -p no:cacheprovider"
--env NETWORK=$NETWORK
--env BASH_COMPLETION_TEST_LIVE_SSH_HOST=localhost
${NETWORK:+--network $NETWORK}
--volume $PWD:/usr/src/bash-completion
--workdir /usr/src/bash-completion
ghcr.io/scop/bash-completion/test:${{matrix.dist}}
test/docker/entrypoint.sh
env:
NETWORK: ${{matrix.network}}
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
path: bash-completion-*.tar.xz
if: matrix.dist == 'alpine'