Skip to content

Commit

Permalink
changing name of rust GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Jun 29, 2024
1 parent 150422e commit 22386a0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 40 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/changed_rust.yml

This file was deleted.

35 changes: 30 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
name: Ruff
name: Run Ruff on Changed Files

on: [push, pull_request]
on:
push:
pull_request:

jobs:
ruff:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Get all commits

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v35
with:
files: '**/*.py' # Adjust pattern for your file types

- name: Setup Python environment
uses: actions/setup-python@v3

- name: Install Ruff
run: pip install ruff

- name: Run Ruff on changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
# for file in ${ALL_CHANGED_FILES}; do
# echo "$file was changed"
# done
ruff check ${ALL_CHANGED_FILES}

0 comments on commit 22386a0

Please sign in to comment.