Skip to content

Commit 756640e

Browse files
ci
1 parent 850e4c0 commit 756640e

File tree

7 files changed

+1728
-22
lines changed

7 files changed

+1728
-22
lines changed

.github/dependabot.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
version: 2
22
updates:
3+
# ─── Python (pip) ─────────────────────────────
34
- package-ecosystem: "pip"
45
directory: "/"
5-
schedule:
6-
interval: "daily"
7-
time: "06:00"
8-
timezone: "UTC"
9-
open-pull-requests-limit: 5
10-
labels:
11-
- "dependencies"
12-
- "pip"
6+
schedule: { interval: "weekly" }
7+
labels: [ "dependencies", "pip" ]
8+
groups: # Group patches & minors from dev-only tools
9+
dev-py:
10+
dependency-type: "development"
11+
update-types: ["minor", "patch"]
12+
13+
# ─── Node (npm) ───────────────────────────────
14+
- package-ecosystem: "npm"
15+
directory: "/"
16+
schedule: { interval: "weekly" }
17+
labels: [ "dependencies", "npm" ]
18+
cooldown: # wait before opening PRs
19+
semver-major-days: 30
20+
semver-minor-days: 7
21+
semver-patch-days: 3
22+
security-updates: true
23+
24+
# ─── GitHub Actions ───────────────────────────
25+
- package-ecosystem: "github-actions"
26+
directory: "/"
27+
schedule: { interval: "weekly" }
28+
labels: [ "dependencies", "gh-actions" ]

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,29 @@ jobs:
2525
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
28+
- name: Locate pip cache
29+
id: pip-cache
30+
shell: bash
31+
run: echo "dir=$(python -m pip cache dir)" >> "$GITHUB_OUTPUT"
2832

2933
- name: Cache pip
3034
uses: actions/cache@v4
3135
with:
32-
path: ~/.cache/pip
36+
path: ${{ steps.pip-cache.outputs.dir }}
3337
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
34-
restore-keys: |
35-
${{ runner.os }}-pip-
36-
38+
restore-keys: ${{ runner.os }}-pip-
3739
- name: Install dependencies
3840
run: |
3941
python -m pip install --upgrade pip
40-
python -m pip install -e ".[dev]"
42+
python -m pip install ".[dev]"
4143
4244
- name: Run tests
4345
run: pytest
4446

4547
# Run pre-commit only on Python 3.13 + ubuntu.
4648
- name: Run pre-commit hooks
49+
uses: pre-commit/action@v3.0.1
4750
if: ${{ matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest' }}
48-
run: pre-commit run --all-files
4951

5052
frontend:
5153
needs: test # Builds Tailwind CSS only if tests pass

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ jobs:
5858

5959
- name: Install build backend
6060
run: |
61+
python -m pip install --upgrade pip
62+
python -m pip install build twine
6163
python -m build
62-
python -m pip install twine
6364
twine check dist/*
64-
ls -R dist/ # List the contents of the dist directory
65-
6665
- name: Upload dist artefact
6766
uses: actions/upload-artifact@v4
6867
with:

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: OSSF Scorecard
22
on:
33
branch_protection_rule:
44
schedule:
5-
- cron: '33 11 * * 2'
5+
- cron: '33 11 * * 2' # Every Tuesday at 11:33 AM UTC
66
push:
77
branches: [ main ]
88

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,6 @@ node_modules/
173173
# CSS
174174
src/static/css/site.css
175175

176-
# Lock files
177-
package-lock.json
178-
179176
# Project specific
180177
history.txt
181178
cleanup.py

0 commit comments

Comments
 (0)