diff --git a/.github/workflows/herding_cats_explorer_tests.yml b/.github/workflows/herding_cats_explorer_tests.yml index 3767e47..7edc043 100644 --- a/.github/workflows/herding_cats_explorer_tests.yml +++ b/.github/workflows/herding_cats_explorer_tests.yml @@ -9,6 +9,7 @@ on: jobs: test: + needs: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/herding_cats_linting.yml b/.github/workflows/herding_cats_linting.yml new file mode 100644 index 0000000..15fa5c5 --- /dev/null +++ b/.github/workflows/herding_cats_linting.yml @@ -0,0 +1,27 @@ +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: Run Ruff linting + run: ruff check .