Skip to content

Commit 2d19053

Browse files
committed
🏗: Add coverage to .gitignore and CI workflow
- Adds .coverage to .gitignore to prevent it from being tracked. - Introduces a GitHub Actions workflow (tests.yml) to automate CI. - The workflow checks out code, sets up Python 3.11, installs dependencies, and runs tests using make test. - This ensures consistent testing and code coverage management.
1 parent 2ccf787 commit 2d19053

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.11"
20+
21+
- name: Install dependencies
22+
run: |
23+
make install
24+
25+
- name: Run pytest
26+
run: make test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ env/
33
__pycache__/
44
.ruff_cache/
55
.idea/
6+
.coverage

0 commit comments

Comments
 (0)