Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Updated builders to use GitHub Actions #284

Updated builders to use GitHub Actions

Updated builders to use GitHub Actions #284

Workflow file for this run

name: Ruff
on: [pull_request, workflow_dispatch]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install ruff
run: pip install ruff
- name: Get changed Python files
id: changed-py-files
uses: tj-actions/changed-files@v42
with:
files: |
*.py
**/*.py
- name: Run ruff
if: steps.changed-py-files.outputs.any_changed == 'true'
run: ruff check ${{ steps.changed-py-files.outputs.all_changed_files }} --force-exclude