aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2025-12-20 17:42:30 -0600
committerChristian Cleberg <[email protected]>2025-12-20 17:42:30 -0600
commita302a3fd37fa5c89bd3bd7a51cef212cf199143b (patch)
tree255b137923608268fd45d0cb11f7ee26605a183f
parentb5922121d971f92ce05409f3522b8c015952c1ca (diff)
downloadcleberg.net-a302a3fd37fa5c89bd3bd7a51cef212cf199143b.tar.gz
cleberg.net-a302a3fd37fa5c89bd3bd7a51cef212cf199143b.tar.bz2
cleberg.net-a302a3fd37fa5c89bd3bd7a51cef212cf199143b.zip
add github actions
-rw-r--r--.github/FUNDING.yml1
-rw-r--r--.github/workflows/ruff.yml37
2 files changed, 38 insertions, 0 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..4b822e5
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1 @@
+github: [ccleberg]
diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml
new file mode 100644
index 0000000..2cefea1
--- /dev/null
+++ b/.github/workflows/ruff.yml
@@ -0,0 +1,37 @@
+name: Ruff
+
+on:
+ push:
+ paths:
+ - '**.py'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.x"]
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+ ref: ${{ github.event.pull_request.head.ref }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install pandas plotly
+ - name: Install Ruff
+ uses: astral-sh/[email protected]
+ - name: Ruff Actions
+ run: |
+ ruff check --fix
+ ruff format
+ - name: Add and Commit
+ uses: EndBug/add-and-commit@v9
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ default_author: github_actions
+ pathspec_error_handling: ignore