Skip to content

CI: Harden GHA configuration #55

CI: Harden GHA configuration

CI: Harden GHA configuration #55

Workflow file for this run

name: Check Code Style - ruff
permissions:
contents: read
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-python@v2
- name: Install Dependencies
run: |
# These packages are installed in the base environment but may be older
# versions. Explicitly upgrade them because they often create
# installation problems if out of date.
python -m pip install --upgrade pip setuptools numpy
pip install ruff
- name: Run ruff
run: |
ruff check