Skip to content

Commit 0c69e13

Browse files
committed
Improved separation of tests and benchmarks
1 parent dfbca02 commit 0c69e13

File tree

15 files changed

+25
-1
lines changed

15 files changed

+25
-1
lines changed

.github/workflows/bench.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: bench
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
9+
jobs:
10+
test-job:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out repository code
14+
uses: actions/checkout@v2
15+
- name: Install Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.10'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install -e .[dev]
22+
- name: Run benchmarks
23+
run: |
24+
python -m unittest discover -s tests/bench

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
python -m pip install -e .[dev]
2222
- name: Run tests and code coverage
2323
run: |
24-
coverage run --source=src -m unittest discover -s tests
24+
coverage run --source=src -m unittest discover -s tests/unit
2525
coverage report -m
2626
- name: Upload coverage reports to Codecov
2727
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)