Skip to content

Commit ae2ce60

Browse files
committed
Add GitHub Workflow
1 parent 0f73efa commit ae2ce60

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI build workflow with MISE-EN-PLACE
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.13.7'
21+
22+
- name: Install Mise and Dependencies
23+
uses: jdx/mise-action@v2
24+
with:
25+
version: latest # or specify pin, e.g. "2024.12.14"
26+
install: true # Installs tools defined in .mise.toml or .tool-versions
27+
cache: true # Caches virtualenvs created by mise
28+
29+
- name: Trust mise configuration
30+
run: |
31+
chmod +x scripts/trust-mise.sh || true
32+
bash scripts/trust-mise.sh
33+
# don't fail the job if the script cannot obtain a public IP or similar; script exits non-zero only on serious errors
34+
continue-on-error: false
35+
36+
- name: Run build via Mise
37+
run: |
38+
mise run build

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ Pipfile.lock
5959
# logs
6060
*.log
6161

62-
# GitHub Actions
63-
.github/workflows/
64-
6562
# local config
6663
.env
6764

0 commit comments

Comments
 (0)