-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (29 loc) · 908 Bytes
/
Copy pathtest.yml
File metadata and controls
35 lines (29 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: 🧪 Tests
on:
pull_request:
branches: ["main", "master"]
workflow_dispatch:
workflow_call:
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 📦 Setup Poetry
uses: ./.github/actions/setup-poetry
with:
python-version: ${{ matrix.python-version }}
install-deps: dev
- name: 🧪 Run tests with pytest and coverage
run: |
poetry run pytest tests/ -v --tb=short --cov=pycodeloop --cov-report=xml --cov-report=term-missing
- name: ✅ Test Summary
if: always()
run: |
echo "### Tests Completed ✅" >> $GITHUB_STEP_SUMMARY
echo "Python Version: ${{ matrix.python-version }}" >> $GITHUB_STEP_SUMMARY