Skip to content

Commit 1a6cf3d

Browse files
committed
Split up unittests and integration tests
1 parent 599e3eb commit 1a6cf3d

14 files changed

Lines changed: 17 additions & 4 deletions

.github/workflows/pythonapp.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
black --check --diff .
3636
yamllint .
3737
38-
unittests:
39-
name: Unit Tests
38+
tests:
39+
name: Tests
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v2
@@ -53,7 +53,10 @@ jobs:
5353
pip install --editable .
5454
- name: Unittests with pytest
5555
run: |
56-
pytest tests
56+
pytest tests/unittests
57+
- name: Integration tests with pytest
58+
run: |
59+
pytest tests/integration
5760
- name: Doctests with pytest
5861
run: |
5962
pytest --doctest-modules speechbrain

.pre-push-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,17 @@ repos:
3232
hooks:
3333
- id: unittests
3434
name: unittests
35-
entry: pytest tests
35+
entry: pytest tests/unittests
36+
language: python
37+
pass_filenames: False
38+
always_run: True
39+
require_serial: False
40+
41+
- repo: local
42+
hooks:
43+
- id: integration
44+
name: integration
45+
entry: pytest tests/integration
3646
language: python
3747
pass_filenames: False
3848
always_run: True

0 commit comments

Comments
 (0)