Merge remote-tracking branch 'origin/topic/bbannier/ci-pre-commit'

This commit is contained in:
Benjamin Bannier 2024-10-15 12:15:30 +02:00
commit a1aff92c1a
2 changed files with 8 additions and 8 deletions

View file

@ -24,12 +24,12 @@ jobs:
# event, so we only need to authenticate in that case. Use # event, so we only need to authenticate in that case. Use
# unauthenticated access otherwise so this action can e.g., also run from # unauthenticated access otherwise so this action can e.g., also run from
# clones. # clones.
- uses: actions/checkout@v3 - uses: actions/checkout@v4
if: github.event_name == 'schedule' if: github.event_name == 'schedule'
with: with:
submodules: "recursive" submodules: "recursive"
token: ${{ secrets.ZEEK_BOT_TOKEN }} token: ${{ secrets.ZEEK_BOT_TOKEN }}
- uses: actions/checkout@v3 - uses: actions/checkout@v4
if: github.event_name != 'schedule' if: github.event_name != 'schedule'
with: with:
submodules: "recursive" submodules: "recursive"
@ -71,7 +71,7 @@ jobs:
# `python2` so this is a simple workaround until we drop Python 2 # `python2` so this is a simple workaround until we drop Python 2
# support and explicitly use `python3` for all invocations. # support and explicitly use `python3` for all invocations.
sudo ln -sf /usr/bin/python3 /usr/local/bin/python sudo ln -sf /usr/bin/python3 /usr/local/bin/python
sudo pip3 install -r doc/requirements.txt sudo pip3 install --break-system-packages -r doc/requirements.txt
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2
@ -131,7 +131,7 @@ jobs:
# Only send notifications for scheduled runs. Runs from pull requests # Only send notifications for scheduled runs. Runs from pull requests
# show failures in the GitHub UI. # show failures in the GitHub UI.
if: failure() && github.event_name == 'schedule' if: failure() && github.event_name == 'schedule'
uses: dawidd6/action-send-mail@v3.7.0 uses: dawidd6/action-send-mail@v3.12.0
with: with:
server_address: ${{secrets.SMTP_HOST}} server_address: ${{secrets.SMTP_HOST}}
server_port: ${{secrets.SMTP_PORT}} server_port: ${{secrets.SMTP_PORT}}

View file

@ -7,8 +7,8 @@ on:
jobs: jobs:
pre-commit: pre-commit:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.0 - uses: pre-commit/action@v3.0.1