Skip to content

Commit 3b225d2

Browse files
authored
Merge pull request #153 from MTG/test/bootstrap-unit-tests
new version 1.2 of the package
2 parents cbda490 + 1da3ada commit 3b225d2

116 files changed

Lines changed: 17859 additions & 1580 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/tests.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run unit tests
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
jobs:
11+
test:
12+
name: Pytest on ${{ matrix.os }} (Python ${{ matrix.python-version }})
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
python-version: ["3.9", "3.10", "3.11", "3.12"]
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
cache: pip
28+
29+
- name: Install package and test dependencies
30+
run: python -m pip install -e ".[test]"
31+
32+
- name: Run test suite
33+
run: python -m pytest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
.idea/**/dictionaries
1515
.idea/**/shelf
1616

17+
# Ignore all benchmarks
18+
benchmarks/
19+
1720
software/.vs/*
1821
workspace_dev/*
1922
workspace/*
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file: /Users/xserra/sms-tools/smstools/models/hpsModel.py
2+
# hypothesis_version: 6.151.9
3+
4+
[0.01, 0.02, 0.2, 5.0, 50.0, 5000.0, 100, 128, 512]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file: /Users/xserra/sms-tools/smstools/models/sineModel.py
2+
# hypothesis_version: 6.151.9
3+
4+
[0.01, 100, 512]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file: /Users/xserra/sms-tools/smstools/models/harmonicModel.py
2+
# hypothesis_version: 6.151.9
3+
4+
[0.01, 0.02, 2.0, 100, 512]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file: /Users/xserra/sms-tools/smstools/transformations/stochasticTransformations.py
2+
# hypothesis_version: 6.151.9
3+
4+
[]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file: /Users/xserra/sms-tools/smstools/models/hprModel.py
2+
# hypothesis_version: 6.151.9
3+
4+
[0.01, 0.02, 128, 512]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file: /Users/xserra/sms-tools/smstools/transformations/stftTransformations.py
2+
# hypothesis_version: 6.151.9
3+
4+
[-200]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file: /Users/xserra/sms-tools/smstools/models/dftModel.py
2+
# hypothesis_version: 6.151.9
3+
4+
[0.0, 1e-14]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# file: /Users/xserra/sms-tools/smstools/models/stochasticModel.py
2+
# hypothesis_version: 6.151.9
3+
4+
[-200, 700, 2595, 44100]

0 commit comments

Comments
 (0)