Skip to content

Commit 703104e

Browse files
committed
ci: Add Ruff linter as GitHub Action.
Executes Ruff as linter tool to check code pattern. Signed-off-by: Paulo Vital <[email protected]>
1 parent 982639f commit 703104e

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/linter.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Ruff
2+
on: [ push, pull_request ]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: astral-sh/ruff-action@v3
9+
with:
10+
src: >-
11+
./src
12+
./tests
13+
./tests-aws

.github/workflows/release-notification-on-slack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: 'Checkout the needed file only ./bin/announce_release_on_slack.py'
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- run: |
2121
if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
2222
export GITHUB_RELEASE_TAG=${{ inputs.github_ref }}

.github/workflows/sonarqube.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Build
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- uses: sonarsource/sonarqube-scan-action@master

0 commit comments

Comments
 (0)