Skip to content

Commit 3856b59

Browse files
committed
ADD: added testes and CI/CD
1 parent 4d551ba commit 3856b59

12 files changed

Lines changed: 3025 additions & 0 deletions

File tree

.coverage

52 KB
Binary file not shown.

.github/workflows/tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [3.9, "3.10", "3.11", "3.12"]
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
- run: pip install -e ".[dev]"
17+
- run: pytest --cov=src/contextify
18+
- run: ruff check src/

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,21 @@ contextify/
188188
### Running Tests
189189

190190
```bash
191+
uv pip install -e ".[dev]"
192+
193+
191194
pytest
195+
196+
pytest --version
197+
198+
#Run with Coverage Report
199+
200+
pytest --cov=src/contextify --cov-report=html
201+
202+
#Then open htmlcov/index.html in your browser to see coverage.
203+
204+
205+
192206
```
193207

194208
### Code Quality

0 commit comments

Comments
 (0)