Skip to content

Commit 267ae2a

Browse files
committed
🧪 Add test during CI
1 parent 8c351f5 commit 267ae2a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: 🧪 Test
3+
4+
on:
5+
push:
6+
7+
jobs:
8+
test:
9+
name: 🧪 Test - Python v${{ matrix.python-version }}
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version:
16+
- "3.9"
17+
- "3.10"
18+
- "3.11"
19+
- "3.12"
20+
21+
steps:
22+
- name: 🗂️ Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: 🐍 Setup - Python v${{ matrix.python-version }}
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
cache: pip
30+
31+
- name: ⏬ Install Dependencies
32+
run: python -m pip install -r requirements.txt
33+
34+
- name: 🧪 Run tests
35+
run: python -m pytest --cov=src --cov-report=xml

0 commit comments

Comments
 (0)