test(tests): added codecoverage percentage checks [2024-11-27] #8
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
name: HerdingCats Linting | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.py" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ruff | |
- name: Create Ruff config | |
run: | | |
echo "[tool.ruff]" > pyproject.toml | |
echo "ignore = [\"F841\"]" >> pyproject.toml | |
- name: Run Ruff linting | |
run: ruff check . |