chore(deps-dev): bump ruff from 0.8.0 to 0.8.1 #160
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
#SPDX-FileCopyrightText: 2024 Birger Schacht | |
#SPDX-License-Identifier: MIT | |
name: Run stylesheet linter | |
on: | |
pull_request: | |
jobs: | |
cssbeautify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# for poetry caching, we have to install poetry before setting up python | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
cache: 'poetry' | |
cache-dependency-path: "pyproject.toml" | |
python-version: "3.11" | |
- name: Install dev dependencies | |
run: | | |
poetry install --no-root --no-directory --only dev | |
- name: Run css-beautify | |
run: | | |
if find . -name "*.css" -exec poetry run css-beautify -rn {} \; | grep -v unchanged; then | |
exit 1; | |
else | |
exit 0; | |
fi |