Skip to content

Merge pull request #43 from byu-cpe/license-headers #192

Merge pull request #43 from byu-cpe/license-headers

Merge pull request #43 from byu-cpe/license-headers #192

Workflow file for this run

name: Ruff Linting
on: [push, pull_request]
jobs:
lint:
name: Run Ruff linting
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements.txt
pip install ruff
- name: Run Ruff on maeser directory
run: ruff check maeser
- name: Run Ruff on tests directory
run: ruff check tests