Skip to content

Commit fb7603e

Browse files
committed
Add pytest CI gh actions workflow
1 parent 8b4bf91 commit fb7603e

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main, develop]
5+
paths: ["src/**", "tests/**", ".github/workflows/ci.yml"]
6+
pull_request:
7+
branches: [main, develop]
8+
paths: ["src/**", "tests/**", ".github/workflows/ci.yml"]
9+
workflow_dispatch:
10+
11+
jobs:
12+
pytest-ci:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: [3.7, 3.8, 3.9, "3.10"]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Python ${{ matrix.python-version}}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install Dependencies
27+
run: |
28+
pip install -U pip
29+
pip install .
30+
pip install seaborn plotnine
31+
32+
- name: Run pytest
33+
run: pytest tests --tb=line --cov=src --cov-report=xml --cov-report=term

0 commit comments

Comments
 (0)