Skip to content

Commit 92c9a25

Browse files
michshatclaude
andcommitted
ci: Add GitHub Actions test workflow + improve test coverage
- Add .github/workflows/test.yml for CI testing - Tests run on Ubuntu, Windows, macOS across Python 3.9-3.13 - Expand test suite from 16 to 83 tests (91% coverage) - Add mocked Ollama tests for CLI commands - Add temp file tests for file operations - Add badges to README (tests, python version, license) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c591091 commit 92c9a25

3 files changed

Lines changed: 970 additions & 37 deletions

File tree

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -e ".[dev]"
30+
31+
- name: Run tests with coverage
32+
run: |
33+
pytest tests/ -v --cov=logparseiqx --cov-report=xml --cov-report=term-missing
34+
35+
- name: Upload coverage to Codecov
36+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
37+
uses: codecov/codecov-action@v4
38+
with:
39+
file: ./coverage.xml
40+
fail_ci_if_error: false

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# LogParseIQX
22

3+
[![Tests](https://github.com/semanticintent/logparseiqx/actions/workflows/test.yml/badge.svg)](https://github.com/semanticintent/logparseiqx/actions/workflows/test.yml)
4+
[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
37
> **"Like cloud AI log parsing but $0"**
48
>
59
> *grep with intelligence*

0 commit comments

Comments
 (0)