← back to Exo
Add Formatter To CI
090265a3743e7f2741cc15cf2716dd39925068b6 · 2025-06-17 05:46:33 +0100 · Arbion Halili
Files touched
A .github/workflows/format.yml
Diff
commit 090265a3743e7f2741cc15cf2716dd39925068b6
Author: Arbion Halili <99731180+ToxicPine@users.noreply.github.com>
Date: Tue Jun 17 05:46:33 2025 +0100
Add Formatter To CI
---
.github/workflows/format.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml
new file mode 100644
index 00000000..a8eedcd6
--- /dev/null
+++ b/.github/workflows/format.yml
@@ -0,0 +1,49 @@
+name: format
+
+on:
+ push:
+ branches:
+ - staging
+ - main
+ pull_request:
+ branches:
+ - staging
+ - main
+
+jobs:
+ format:
+ runs-on: ubuntu-22.04
+
+ permissions:
+ contents: write
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Install uv
+ uses: astral-sh/setup-uv@v6
+ with:
+ enable-cache: true
+ cache-dependency-glob: uv.lock
+
+ - name: Install Python
+ run: uv python install
+
+ - name: Sync dependencies
+ run: uv sync --locked --all-extras --dev
+
+ - name: Format code
+ run: uv run poe fmt
+
+ - name: Push formatted code
+ run: |
+ git diff --quiet && exit 0
+ git config --local user.email "github-actions@users.noreply.github.com"
+ git config --local user.name "github-actions bot"
+ git commit -am "chore(format)"
+ git push
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
← e2508f34 Add Type Checker In CI
·
back to Exo
·
Add ML Engines (Backend) 043253a5 →