/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/ci.yaml
82 строки
3 KB
Ville Skyttä
chore: switch from pre-commit to prek
30 июл 2026, 17:24
30 июл 2026, 17:24
6338ff0
Код
Авторство
О чём код?
name: ci on: pull_request: push: branches: - main permissions: {} jobs: pre-commit: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: ">=3.7" cache: pip cache-dependency-path: | .github/requirements.txt test/requirements*.txt - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/prek key: prek-${{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 prek run --color=always --all-files --show-diff-on-failure distcheck: runs-on: ubuntu-latest strategy: matrix: include: - dist: almalinux9 - dist: alpine - dist: centos7 - dist: debian10 - dist: debian10 bsd: true network: none - dist: fedoradev - dist: ubuntu14 fail-fast: false steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 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'