Skip to content

Commit ab956d6

Browse files
committed
CI: configure automatic testing
1 parent f872ae2 commit ab956d6

File tree

3 files changed

+33
-78
lines changed

3 files changed

+33
-78
lines changed

.github/workflows/ci.yml_

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
shell: bash -l {0}
2020

2121
steps:
22-
- name: Checkout the branch
22+
- name: Checkout
2323
uses: actions/checkout@v3
2424

2525
- name: Set up Python

.github/workflows/testing.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Unit Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
12+
fail-fast: false
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install dependencies
24+
run: |
25+
pip install .[dev]
26+
pip list
27+
28+
- name: Test with pytest
29+
run: |
30+
# pytest -k test_ip_kernel_func -vvv
31+
coverage run -m pytest -vv
32+
coverage report -m

0 commit comments

Comments
 (0)