Skip to content

Commit 404dcba

Browse files
committed
Add hello.sh script for local and remote execution
- Introduced a new script `hello.sh` in the playbooks directory. - The script includes a local echo command and a remote command to display system information. - Configured to exit on errors and handle undefined variables.
1 parent 0e7eaf5 commit 404dcba

File tree

15 files changed

+583
-158
lines changed

15 files changed

+583
-158
lines changed

.github/workflows/ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version:
16+
- "3.12"
17+
- "3.13"
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v5
22+
23+
- name: Set up uv
24+
uses: astral-sh/setup-uv@v7
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
enable-cache: true
28+
cache-dependency-glob: |
29+
pyproject.toml
30+
uv.lock
31+
32+
- name: Install dependencies
33+
run: uv sync --all-groups
34+
35+
- name: Run tests
36+
run: uv run pytest -q
37+
38+
- name: Run BDD scenarios
39+
run: uv run behave features
40+
41+
quality:
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v5
47+
48+
- name: Set up uv
49+
uses: astral-sh/setup-uv@v7
50+
with:
51+
python-version: "3.12"
52+
enable-cache: true
53+
cache-dependency-glob: |
54+
pyproject.toml
55+
uv.lock
56+
57+
- name: Install dependencies
58+
run: uv sync --all-groups
59+
60+
- name: Run formatting check
61+
run: uv run ruff format --check .
62+
63+
- name: Run lint
64+
run: uv run ruff check .
65+
66+
- name: Run type check
67+
run: uv run ty check src tests
68+
69+
- name: Build distributions
70+
run: uv build

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/shellflow
14+
permissions:
15+
contents: read
16+
id-token: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v5
21+
22+
- name: Set up uv
23+
uses: astral-sh/setup-uv@v7
24+
with:
25+
python-version: "3.12"
26+
enable-cache: true
27+
cache-dependency-glob: |
28+
pyproject.toml
29+
uv.lock
30+
31+
- name: Install dependencies
32+
run: uv sync --all-groups
33+
34+
- name: Run release verification
35+
run: |
36+
uv run ruff format --check .
37+
uv run ruff check .
38+
uv run ty check src tests
39+
uv run pytest -q
40+
uv run behave features
41+
42+
- name: Build distributions
43+
run: uv build
44+
45+
- name: Publish to PyPI
46+
run: uv publish

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ Thumbs.db
4040
# Environment variables
4141
.env
4242
.env.local
43+
.rumdl_cache/

Justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ bench:
5050
build:
5151
uv build
5252

53+
# Publish the package to PyPI
54+
publish:
55+
uv build
56+
uv publish
57+
5358
# Type check with ty
5459
typecheck:
5560
uv run ty check src tests

0 commit comments

Comments
 (0)