Skip to content

Ruff Check

Ruff Check #751

Workflow file for this run

name: Ruff Check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# * is a special character in YAML so you have to quote this string
# at 4 am
- cron: '0 4 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
checks:
env:
src: "mltb2"
other_src: "tests"
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# https://github.com/actions/setup-python
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install --all-extras --without doc
- name: Check with Ruff
run: poetry run ruff check ${{ env.src }} ${{ env.other_src }}