terminal-trip 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,184 @@
1
+ Metadata-Version: 2.4
2
+ Name: terminal-trip
3
+ Version: 0.2.1
4
+ Summary: 90s/2000s demoscene, Winamp (Geiss/MilkDrop), and WMP-inspired music visualizer for the terminal
5
+ Author: vhoudoverdov
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/vhoudoverdov/terminal-trip
8
+ Project-URL: Repository, https://github.com/vhoudoverdov/terminal-trip.git
9
+ Project-URL: Issues, https://github.com/vhoudoverdov/terminal-trip/issues
10
+ Project-URL: Changelog, https://github.com/vhoudoverdov/terminal-trip/releases
11
+ Keywords: visualizer,audio,terminal,demoscene,winamp,milkdrop,geiss,ansi,tui,cli
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: End Users/Desktop
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
22
+ Classifier: Topic :: Terminals
23
+ Requires-Python: >=3.10
24
+ Description-Content-Type: text/markdown
25
+ Requires-Dist: numpy>=1.24
26
+ Requires-Dist: miniaudio>=1.59
27
+ Requires-Dist: PyAudioWPatch>=0.2.12; sys_platform == "win32"
28
+ Provides-Extra: loopback-alt
29
+ Requires-Dist: soundcard>=0.4.2; extra == "loopback-alt"
30
+
31
+ # terminal-trip
32
+
33
+ A retro 90s/2000s music visualizer that runs at 60 FPS right inside your terminal with **2×2 supersampling anti-aliasing (SSAA)** and 24-bit ANSI half-blocks—inspired by Winamp's **Geiss / MilkDrop**, Windows Media Player's **Bars and Waves / Ambience**, **Chladni cymatic reaction-diffusion**, **80s/90s Synthwave 3D horizons**, **3D harmonic attractors**, and **demoscene wormholes, plasmas, and Julia fractals**.
34
+
35
+ >Looking for the under-the-hood DSP formulas, feedback warp math, lookup-table equations, and ANSI rendering architecture? See **[ARCHITECTURE.md](ARCHITECTURE.md)**.
36
+
37
+ ---
38
+
39
+ ## 1. Download & Run
40
+
41
+ ### Option A: Zero-Install Runner (`uvx` / `pipx`)
42
+ Once published to PyPI, you can launch `terminal-trip` immediately without cloning or managing a virtual environment:
43
+
44
+ ```powershell
45
+ # Run instantly in an isolated ephemeral environment
46
+ uvx terminal-trip
47
+ # or
48
+ pipx run terminal-trip
49
+
50
+ # Or install globally as a CLI command
51
+ uv tool install terminal-trip
52
+ # or
53
+ pipx install terminal-trip
54
+ ```
55
+
56
+ *(You can also run directly from GitHub at any time via `uvx --from git+https://github.com/vhoudoverdov/terminal-trip.git terminal-trip` or `pipx run --spec git+https://github.com/vhoudoverdov/terminal-trip.git terminal-trip`.)*
57
+
58
+ ### Option B: Clone & Install (`pip` / `venv`)
59
+ Clone the repository and install it into a local virtual environment:
60
+
61
+ ```powershell
62
+ git clone https://github.com/vhoudoverdov/terminal-trip.git
63
+ cd terminal-trip
64
+
65
+ # Create a virtual environment and install
66
+ python -m venv .venv
67
+ .\.venv\Scripts\pip install .
68
+
69
+ # Launch!
70
+ .\.venv\Scripts\terminal-trip
71
+ ```
72
+
73
+ *(On macOS / Linux, replace `.\.venv\Scripts\` with `./.venv/bin/`.)*
74
+
75
+ ### Option C: Strict Hash-Verified Install
76
+ If you want cryptographic SHA-256 verification of every downloaded wheel:
77
+
78
+ ```powershell
79
+ python -m venv .venv
80
+ .\.venv\Scripts\pip install --require-hashes -r requirements.txt
81
+ .\.venv\Scripts\python main.py
82
+ ```
83
+
84
+ ---
85
+
86
+ ## 2. Common Launch Modes
87
+
88
+ ```powershell
89
+ # React to whatever is playing on your computer (Spotify, YouTube, etc. via Windows WASAPI loopback)
90
+ python main.py
91
+
92
+ # Play and visualize an audio file (.wav, .mp3, .flac, .ogg)
93
+ python main.py --file path/to/song.mp3
94
+
95
+ # Run the built-in 125 BPM acid-techno synth and auto-cycle presets + palettes
96
+ python main.py --synth --auto
97
+
98
+ # Start on a specific preset (1-8) and color palette (1-6)
99
+ python main.py --preset 5 --palette 2
100
+ ```
101
+
102
+ > **Tip:** Use **Windows Terminal** (or any modern true-color terminal). Shrinking your terminal font size (`Ctrl` + `-`) increases the pixel resolution of the canvas!
103
+
104
+ ---
105
+
106
+ ## 3. Controls & Cycling Patterns / Colors
107
+
108
+ While `terminal-trip` is running, use your keyboard to switch visual patterns, cycle color palettes, toggle 2×2 supersampling, change audio inputs, or take screenshots:
109
+
110
+ | Key | Action | Description |
111
+ | :--- | :--- | :--- |
112
+ | **`1` – `8`** | **Select Visual Preset** | Jump directly to Preset 1–8 with a smooth crossfade |
113
+ | **`←` / `→`** | **Previous / Next Preset** | Cycle backward or forward through all 8 visual patterns |
114
+ | **`Space`** | **Toggle Auto-Cycle** | Automatically crossfade to a new preset and palette every ~20 seconds on a beat |
115
+ | **`P`** | **Cycle Color Palette** | Smoothly morph to the next 256-color palette (6 built-in palettes) |
116
+ | **`A`** | **Switch Audio Source** | Cycle between *System Loopback* $\rightarrow$ *Demo Synth* $\rightarrow$ *Audio File* |
117
+ | **`+` / `-`** | **Audio Sensitivity** | Boost or attenuate visual reactivity (`0.25x` to `4.0x` gain) |
118
+ | **`V`** | **Toggle 2×2 Supersampling** | Toggle `2×2` sub-pixel Supersampling Anti-Aliasing (`[2xAA]` in HUD) |
119
+ | **`D`** | **Color Detail Level** | Cycle `256` $\rightarrow$ `128` $\rightarrow$ `64` color levels (lower = fewer ANSI codes for slower terminals) |
120
+ | **`H`** | **Toggle Bottom HUD** | Show or hide the status bar (active preset, palette, FPS, live Bass/Mid/Treble VU meter) |
121
+ | **`S`** | **Save PNG Screenshot** | Save the current frame as a crisp 4× upscaled PNG (`terminal-trip-YYYYMMDD-HHMMSS.png`) |
122
+ | **`?`** | **Toggle Help Overlay** | Show or hide the on-screen hotkey cheat sheet |
123
+ | **`Q` / `Esc`** | **Quit** | Cleanly restore the terminal screen and exit |
124
+
125
+ ---
126
+
127
+ ## 4. Built-in Visual Presets & Palettes
128
+
129
+ ### Visual Presets (`1`–`8` or `←`/`→`)
130
+ 1. `[1]` Geiss Vortex: Polar feedback warp (zoom + swirl + petal modulation) with isotropic 9-point bloom diffusion, smooth shape morphing across harmonic rings, ribbons, and Lissajous waves, and sub-pixel anti-aliased beat sparks.
131
+ 2. `[2]` LUT Wormhole: Demoscene `1/r` tunnel with continuous sub-pixel Lissajous camera glide, $N$-fold kaleidoscope symmetry, distance-attenuated XOR/plasma wall textures, and smooth bell-curve audio spectrum rings.
132
+ 3. `[3]` Bars & Waves: Tribute to Windows Media Player—48 logarithmic spectrum bars with sub-pixel anti-aliased crests, specular rim shading, gravity peak-hold caps, rising diffused heat trails, and a continuous CRT phosphor Signed Distance Field (SDF) oscilloscope beam.
133
+ 4. `[4]` Plasma & Fire: Four-wave sine interference plasma with specular contour crests combined with a 9-point turbulent wind-curled fire buffer and flame-edge gradient relief (`|∇F|`).
134
+ 5. `[5]` Cymatic Lab: Crossover with `terminal-soup`—a 9-point isotropic Gray-Scott Reaction-Diffusion field coupled to Chladni standing-wave acoustic nodal plates ($\cos(n\pi x)\cos(m\pi y) - \cos(m\pi x)\cos(n\pi y)$) with membrane-relief shading.
135
+ 6. `[6]` SynthHorizon: Retro 80s/90s outrun 3D perspective-projected canyon grid with an audio-reactive spectrum mountain ridge, scanline-segmented synthwave sun, and twinkling treble starfield.
136
+ 7. `[7]` 3D Attractor: Rotating 3D volumetric $(p, q)$ harmonic torus-knot and strange-attractor phase ribbon modulated by the live waveform, projected with perspective depth-cue shading and swirling motion-blur trails.
137
+ 8. `[8]` Julia Fractal: Real-time 60 FPS audio-reactive Julia set ($z_{n+1} = z_n^2 + c(t)$) orbiting the Mandelbrot cardioid perimeter with smooth fractional escape-potential coloring, Pickover orbital-trap interior glow, and beat-triggered kaleidoscope folding.
138
+
139
+ ### Color Palettes (`P`)
140
+ 1. **Geiss Fire** *(Indigo $\rightarrow$ Magenta $\rightarrow$ Electric Orange $\rightarrow$ White-Hot Yellow)*
141
+ 2. **WMP Cobalt** *(Midnight Blue $\rightarrow$ Electric Cyan $\rightarrow$ Violet $\rightarrow$ Hot Pink)*
142
+ 3. **Acid Matrix** *(Deep Emerald $\rightarrow$ Neon Lime $\rightarrow$ Cyan)*
143
+ 4. **Neon Sunset** *(Crimson $\rightarrow$ Tangerine $\rightarrow$ Gold $\rightarrow$ Deep Violet)*
144
+ 5. **Thermal Cosine** *(Continuous Inigo Quilez periodic cosine rainbow)*
145
+ 6. **Infrared** *(Dark Red $\rightarrow$ Lava Orange $\rightarrow$ Incandescent White)*
146
+
147
+ ---
148
+
149
+ ## 5. Command-Line Options & Unit Tests
150
+
151
+ | Flag | Default | Description |
152
+ | :--- | :--- | :--- |
153
+ | `--version` | *None* | Print the installed `terminal-trip` version and exit |
154
+ | `--check-update` | *Off* | Check GitHub Releases/Tags for a newer version and exit |
155
+ | `--update` | *Off* | Self-update `terminal-trip` (`git pull --ff-only` or `pip install --upgrade`) and exit |
156
+ | `--no-update-check` | *Off* | Disable the 24h-cached background startup update check |
157
+ | `--file PATH` | *None* | Audio file to play and visualize (`.wav`, `.mp3`, `.flac`, `.ogg`) |
158
+ | `--synth` | *Off* | Start immediately with the built-in procedural 125 BPM demo synth |
159
+ | `--preset {1..8}` | `1` | Starting visual preset |
160
+ | `--palette {1..6}` | `1` | Starting 256-color palette |
161
+ | `--auto` | *Off* | Enable automatic preset & palette cycling on startup |
162
+ | `--fps FPS` | `60.0` | Target frame rate (`1`–`240`) |
163
+ | `--detail {0,1,2}` | `0` | Bit-shift quantization (`0` = 256 levels, `1` = 128 levels, `2` = 64 levels) |
164
+ | `--no-ssaa` | *Off* | Start with 2×2 supersampling anti-aliasing disabled (`1:1` pixel grid) |
165
+ | `--no-hud` | *Off* | Hide the bottom HUD bar on startup |
166
+ | `--bench N` | `0` | Headless benchmark mode: render `N` frames per preset and print timing stats |
167
+ | `--size COLSxROWS` | `120x40` | Canvas size in terminal cells for `--bench` mode |
168
+ | `--snapshot DIR` | *None* | Save one PNG snapshot per preset into `DIR` during `--bench` |
169
+
170
+ ### Running the Unit Test Suite
171
+ ```powershell
172
+ python -m unittest discover -s tests -v
173
+ ```
174
+
175
+ ---
176
+
177
+ ## 6. Continuous Integration & Automated Releases
178
+
179
+ - **Cross-Platform CI (`.github/workflows/ci.yml`)**: Every push and pull request runs the unit test suite (`tests/test_terminal_trip.py`), CLI entry-point verification (`terminal-trip --version`), a headless 8-preset benchmark (`--bench 30`), and distribution wheel builds across **Windows, macOS, and Ubuntu Linux** (Python 3.10–3.13).
180
+ - **Automated Tag Releases & PyPI Publishing (`.github/workflows/release.yml`)**: Pushing a semantic version tag (`v*.*.*`, e.g., `git tag -a v0.2.2 -m "Release v0.2.2" && git push origin v0.2.2`) automatically:
181
+ 1. Verifies that the git tag matches `pyproject.toml` and `updater.__version__`.
182
+ 2. Runs the unit test suite and builds the `.whl` and `.tar.gz` distributions.
183
+ 3. Creates a **GitHub Release** with auto-generated release notes and attached build artifacts (which `terminal-trip --check-update` and `terminal-trip --update` consume automatically).
184
+ 4. Publishes the package to **PyPI** via Trusted Publishing (OIDC) so `uvx terminal-trip` and `pipx run terminal-trip` always serve the latest release.
@@ -0,0 +1,154 @@
1
+ # terminal-trip
2
+
3
+ A retro 90s/2000s music visualizer that runs at 60 FPS right inside your terminal with **2×2 supersampling anti-aliasing (SSAA)** and 24-bit ANSI half-blocks—inspired by Winamp's **Geiss / MilkDrop**, Windows Media Player's **Bars and Waves / Ambience**, **Chladni cymatic reaction-diffusion**, **80s/90s Synthwave 3D horizons**, **3D harmonic attractors**, and **demoscene wormholes, plasmas, and Julia fractals**.
4
+
5
+ >Looking for the under-the-hood DSP formulas, feedback warp math, lookup-table equations, and ANSI rendering architecture? See **[ARCHITECTURE.md](ARCHITECTURE.md)**.
6
+
7
+ ---
8
+
9
+ ## 1. Download & Run
10
+
11
+ ### Option A: Zero-Install Runner (`uvx` / `pipx`)
12
+ Once published to PyPI, you can launch `terminal-trip` immediately without cloning or managing a virtual environment:
13
+
14
+ ```powershell
15
+ # Run instantly in an isolated ephemeral environment
16
+ uvx terminal-trip
17
+ # or
18
+ pipx run terminal-trip
19
+
20
+ # Or install globally as a CLI command
21
+ uv tool install terminal-trip
22
+ # or
23
+ pipx install terminal-trip
24
+ ```
25
+
26
+ *(You can also run directly from GitHub at any time via `uvx --from git+https://github.com/vhoudoverdov/terminal-trip.git terminal-trip` or `pipx run --spec git+https://github.com/vhoudoverdov/terminal-trip.git terminal-trip`.)*
27
+
28
+ ### Option B: Clone & Install (`pip` / `venv`)
29
+ Clone the repository and install it into a local virtual environment:
30
+
31
+ ```powershell
32
+ git clone https://github.com/vhoudoverdov/terminal-trip.git
33
+ cd terminal-trip
34
+
35
+ # Create a virtual environment and install
36
+ python -m venv .venv
37
+ .\.venv\Scripts\pip install .
38
+
39
+ # Launch!
40
+ .\.venv\Scripts\terminal-trip
41
+ ```
42
+
43
+ *(On macOS / Linux, replace `.\.venv\Scripts\` with `./.venv/bin/`.)*
44
+
45
+ ### Option C: Strict Hash-Verified Install
46
+ If you want cryptographic SHA-256 verification of every downloaded wheel:
47
+
48
+ ```powershell
49
+ python -m venv .venv
50
+ .\.venv\Scripts\pip install --require-hashes -r requirements.txt
51
+ .\.venv\Scripts\python main.py
52
+ ```
53
+
54
+ ---
55
+
56
+ ## 2. Common Launch Modes
57
+
58
+ ```powershell
59
+ # React to whatever is playing on your computer (Spotify, YouTube, etc. via Windows WASAPI loopback)
60
+ python main.py
61
+
62
+ # Play and visualize an audio file (.wav, .mp3, .flac, .ogg)
63
+ python main.py --file path/to/song.mp3
64
+
65
+ # Run the built-in 125 BPM acid-techno synth and auto-cycle presets + palettes
66
+ python main.py --synth --auto
67
+
68
+ # Start on a specific preset (1-8) and color palette (1-6)
69
+ python main.py --preset 5 --palette 2
70
+ ```
71
+
72
+ > **Tip:** Use **Windows Terminal** (or any modern true-color terminal). Shrinking your terminal font size (`Ctrl` + `-`) increases the pixel resolution of the canvas!
73
+
74
+ ---
75
+
76
+ ## 3. Controls & Cycling Patterns / Colors
77
+
78
+ While `terminal-trip` is running, use your keyboard to switch visual patterns, cycle color palettes, toggle 2×2 supersampling, change audio inputs, or take screenshots:
79
+
80
+ | Key | Action | Description |
81
+ | :--- | :--- | :--- |
82
+ | **`1` – `8`** | **Select Visual Preset** | Jump directly to Preset 1–8 with a smooth crossfade |
83
+ | **`←` / `→`** | **Previous / Next Preset** | Cycle backward or forward through all 8 visual patterns |
84
+ | **`Space`** | **Toggle Auto-Cycle** | Automatically crossfade to a new preset and palette every ~20 seconds on a beat |
85
+ | **`P`** | **Cycle Color Palette** | Smoothly morph to the next 256-color palette (6 built-in palettes) |
86
+ | **`A`** | **Switch Audio Source** | Cycle between *System Loopback* $\rightarrow$ *Demo Synth* $\rightarrow$ *Audio File* |
87
+ | **`+` / `-`** | **Audio Sensitivity** | Boost or attenuate visual reactivity (`0.25x` to `4.0x` gain) |
88
+ | **`V`** | **Toggle 2×2 Supersampling** | Toggle `2×2` sub-pixel Supersampling Anti-Aliasing (`[2xAA]` in HUD) |
89
+ | **`D`** | **Color Detail Level** | Cycle `256` $\rightarrow$ `128` $\rightarrow$ `64` color levels (lower = fewer ANSI codes for slower terminals) |
90
+ | **`H`** | **Toggle Bottom HUD** | Show or hide the status bar (active preset, palette, FPS, live Bass/Mid/Treble VU meter) |
91
+ | **`S`** | **Save PNG Screenshot** | Save the current frame as a crisp 4× upscaled PNG (`terminal-trip-YYYYMMDD-HHMMSS.png`) |
92
+ | **`?`** | **Toggle Help Overlay** | Show or hide the on-screen hotkey cheat sheet |
93
+ | **`Q` / `Esc`** | **Quit** | Cleanly restore the terminal screen and exit |
94
+
95
+ ---
96
+
97
+ ## 4. Built-in Visual Presets & Palettes
98
+
99
+ ### Visual Presets (`1`–`8` or `←`/`→`)
100
+ 1. `[1]` Geiss Vortex: Polar feedback warp (zoom + swirl + petal modulation) with isotropic 9-point bloom diffusion, smooth shape morphing across harmonic rings, ribbons, and Lissajous waves, and sub-pixel anti-aliased beat sparks.
101
+ 2. `[2]` LUT Wormhole: Demoscene `1/r` tunnel with continuous sub-pixel Lissajous camera glide, $N$-fold kaleidoscope symmetry, distance-attenuated XOR/plasma wall textures, and smooth bell-curve audio spectrum rings.
102
+ 3. `[3]` Bars & Waves: Tribute to Windows Media Player—48 logarithmic spectrum bars with sub-pixel anti-aliased crests, specular rim shading, gravity peak-hold caps, rising diffused heat trails, and a continuous CRT phosphor Signed Distance Field (SDF) oscilloscope beam.
103
+ 4. `[4]` Plasma & Fire: Four-wave sine interference plasma with specular contour crests combined with a 9-point turbulent wind-curled fire buffer and flame-edge gradient relief (`|∇F|`).
104
+ 5. `[5]` Cymatic Lab: Crossover with `terminal-soup`—a 9-point isotropic Gray-Scott Reaction-Diffusion field coupled to Chladni standing-wave acoustic nodal plates ($\cos(n\pi x)\cos(m\pi y) - \cos(m\pi x)\cos(n\pi y)$) with membrane-relief shading.
105
+ 6. `[6]` SynthHorizon: Retro 80s/90s outrun 3D perspective-projected canyon grid with an audio-reactive spectrum mountain ridge, scanline-segmented synthwave sun, and twinkling treble starfield.
106
+ 7. `[7]` 3D Attractor: Rotating 3D volumetric $(p, q)$ harmonic torus-knot and strange-attractor phase ribbon modulated by the live waveform, projected with perspective depth-cue shading and swirling motion-blur trails.
107
+ 8. `[8]` Julia Fractal: Real-time 60 FPS audio-reactive Julia set ($z_{n+1} = z_n^2 + c(t)$) orbiting the Mandelbrot cardioid perimeter with smooth fractional escape-potential coloring, Pickover orbital-trap interior glow, and beat-triggered kaleidoscope folding.
108
+
109
+ ### Color Palettes (`P`)
110
+ 1. **Geiss Fire** *(Indigo $\rightarrow$ Magenta $\rightarrow$ Electric Orange $\rightarrow$ White-Hot Yellow)*
111
+ 2. **WMP Cobalt** *(Midnight Blue $\rightarrow$ Electric Cyan $\rightarrow$ Violet $\rightarrow$ Hot Pink)*
112
+ 3. **Acid Matrix** *(Deep Emerald $\rightarrow$ Neon Lime $\rightarrow$ Cyan)*
113
+ 4. **Neon Sunset** *(Crimson $\rightarrow$ Tangerine $\rightarrow$ Gold $\rightarrow$ Deep Violet)*
114
+ 5. **Thermal Cosine** *(Continuous Inigo Quilez periodic cosine rainbow)*
115
+ 6. **Infrared** *(Dark Red $\rightarrow$ Lava Orange $\rightarrow$ Incandescent White)*
116
+
117
+ ---
118
+
119
+ ## 5. Command-Line Options & Unit Tests
120
+
121
+ | Flag | Default | Description |
122
+ | :--- | :--- | :--- |
123
+ | `--version` | *None* | Print the installed `terminal-trip` version and exit |
124
+ | `--check-update` | *Off* | Check GitHub Releases/Tags for a newer version and exit |
125
+ | `--update` | *Off* | Self-update `terminal-trip` (`git pull --ff-only` or `pip install --upgrade`) and exit |
126
+ | `--no-update-check` | *Off* | Disable the 24h-cached background startup update check |
127
+ | `--file PATH` | *None* | Audio file to play and visualize (`.wav`, `.mp3`, `.flac`, `.ogg`) |
128
+ | `--synth` | *Off* | Start immediately with the built-in procedural 125 BPM demo synth |
129
+ | `--preset {1..8}` | `1` | Starting visual preset |
130
+ | `--palette {1..6}` | `1` | Starting 256-color palette |
131
+ | `--auto` | *Off* | Enable automatic preset & palette cycling on startup |
132
+ | `--fps FPS` | `60.0` | Target frame rate (`1`–`240`) |
133
+ | `--detail {0,1,2}` | `0` | Bit-shift quantization (`0` = 256 levels, `1` = 128 levels, `2` = 64 levels) |
134
+ | `--no-ssaa` | *Off* | Start with 2×2 supersampling anti-aliasing disabled (`1:1` pixel grid) |
135
+ | `--no-hud` | *Off* | Hide the bottom HUD bar on startup |
136
+ | `--bench N` | `0` | Headless benchmark mode: render `N` frames per preset and print timing stats |
137
+ | `--size COLSxROWS` | `120x40` | Canvas size in terminal cells for `--bench` mode |
138
+ | `--snapshot DIR` | *None* | Save one PNG snapshot per preset into `DIR` during `--bench` |
139
+
140
+ ### Running the Unit Test Suite
141
+ ```powershell
142
+ python -m unittest discover -s tests -v
143
+ ```
144
+
145
+ ---
146
+
147
+ ## 6. Continuous Integration & Automated Releases
148
+
149
+ - **Cross-Platform CI (`.github/workflows/ci.yml`)**: Every push and pull request runs the unit test suite (`tests/test_terminal_trip.py`), CLI entry-point verification (`terminal-trip --version`), a headless 8-preset benchmark (`--bench 30`), and distribution wheel builds across **Windows, macOS, and Ubuntu Linux** (Python 3.10–3.13).
150
+ - **Automated Tag Releases & PyPI Publishing (`.github/workflows/release.yml`)**: Pushing a semantic version tag (`v*.*.*`, e.g., `git tag -a v0.2.2 -m "Release v0.2.2" && git push origin v0.2.2`) automatically:
151
+ 1. Verifies that the git tag matches `pyproject.toml` and `updater.__version__`.
152
+ 2. Runs the unit test suite and builds the `.whl` and `.tar.gz` distributions.
153
+ 3. Creates a **GitHub Release** with auto-generated release notes and attached build artifacts (which `terminal-trip --check-update` and `terminal-trip --update` consume automatically).
154
+ 4. Publishes the package to **PyPI** via Trusted Publishing (OIDC) so `uvx terminal-trip` and `pipx run terminal-trip` always serve the latest release.