Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Ruff Lint

on: [push, pull_request]
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]

jobs:
ruff:
Expand Down
36 changes: 27 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,47 @@
name: Test

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

concurrency:
# Distinct keys:
# • PR runs → pr-<number>
# • main push → main-<commit sha>
# • other push (branch) → branch-<branch name>
group: |
${{ github.event_name == 'pull_request'
&& format('pr-{0}', github.event.pull_request.number)
|| (
github.ref == 'refs/heads/main'
&& format('main-{0}', github.sha)
|| format('branch-{0}', github.ref_name)
) }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
uv sync
- name: Install shinobi
run: |
uv pip install -e .
run: uv sync

- name: Install project
run: uv pip install -e .

- name: Run tests
run: |
uv run pytest
run: uv run pytest
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@

## Installation

Right now the only way to install shinobi is through pip. Soon we will make it available through installer / brew
```bash
# Install Shinobi
pip install shinobi
pip install shinobi
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "shinobi"
version = "0.1.1"
version = "0.1.2"
description = "Enhanced project initialization tool built on top of uv"
authors = [
{ name = "Ian Timmis" }
Expand Down
6 changes: 5 additions & 1 deletion shinobi/templates/ci/github_workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Ruff Lint

on: [push, pull_request]
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]

jobs:
ruff:
Expand Down
33 changes: 27 additions & 6 deletions shinobi/templates/ci/github_workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,47 @@
name: Test

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

concurrency:
# Distinct keys:
# • PR runs → pr-<number>
# • main push → main-<commit sha>
# • other push (branch) → branch-<branch name>
group: |
${{ github.event_name == 'pull_request'
&& format('pr-{0}', github.event.pull_request.number)
|| (
github.ref == 'refs/heads/main'
&& format('main-{0}', github.sha)
|| format('branch-{0}', github.ref_name)
) }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
uv sync
run: uv sync

- name: Install project
run: uv pip install -e .

- name: Run tests
run: |
uv run pytest
run: uv run pytest