Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,4 @@ queue_rules:
- check-success = Trunk Check
- check-success = Check Dependency Compatibility
- check-success = CodeRabbit
- or:
- check-success = pre-commit.ci - push
- check-success = pre-commit.ci - pr
- check-success = Pre-commit
28 changes: 21 additions & 7 deletions .github/workflows/code_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,27 @@ on:
branches:
- main
pull_request:
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: write
actions: write
jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Specify the Python version in setup-python.

The actions/setup-python@v4 step requires a python-version input (e.g., 3.x) to install the correct interpreter.
Apply this diff:

-    - uses: actions/setup-python@v4
+    - uses: actions/setup-python@v4
+      with:
+        python-version: 3.x
🧰 Tools
🪛 actionlint (1.7.7)

22-22: the runner of "actions/setup-python@v4" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🤖 Prompt for AI Agents
In .github/workflows/code_analysis.yml at line 22, the setup-python action is
missing the required python-version input. Add a python-version field with the
desired version (e.g., '3.x') to the uses step to specify which Python
interpreter version to install.

- uses: pre-commit/[email protected]
- uses: pre-commit-ci/[email protected]
if: always()
format_codebase:
name: Format Code
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand All @@ -24,16 +35,19 @@ jobs:
- name: Format Codebase
run: $TRUNK_PATH fmt --all --no-progress
- name: Commit
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6
with:
commit_message: Format the code
run: |
git config --global user.name "Mohamed Hisham Abdelzaher"
git config --global user.email "[email protected]"
git add .
git commit -m "Formatting"
git push
trunk:
name: Trunk Code Quality
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
needs: [format_codebase, compatibility]
needs: [format_codebase, compatibility, pre-commit]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand Down
Loading