chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.0… #299
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright © Michal Čihař <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
name: Tests | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: sudo apt update | |
- run: sudo apt install munin-node | |
- name: munin-node-configure | |
run: | | |
BLANKDIR=$(mktemp -d) | |
/usr/sbin/munin-node-configure --servicedir "$BLANKDIR" --sconfdir "$BLANKDIR" --libdir . --suggest --debug || true | |
/usr/sbin/munin-node-configure --servicedir "$BLANKDIR" --sconfdir "$BLANKDIR" --libdir . --suggest > test/out || true | |
diff -u test/expected test/out |