Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to Python 3.11 #11

Merged
merged 4 commits into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6.15]
python-version: [3.11]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
'fldr.tests': 'tests',
},
extras_require={
'tests' : ['pytest', 'scipy']
'tests' : ['pytest', 'flaky', 'scipy']
}
)
4 changes: 3 additions & 1 deletion tests/test_fldr.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


def get_chisquare_pval(p_target, samples):
f_expected = [int(len(samples)*p) for p in p_target]
f_expected = [len(samples)*p for p in p_target]
counts = Counter(samples)
f_actual = [counts[k] for k in range(len(p_target))]
return chisquare(f_expected, f_actual)[1]
Expand All @@ -35,6 +35,7 @@ def get_chisquare_pval(p_target, samples):

num_failed_py = 0
@pytest.mark.parametrize('a', a_list)
@pytest.mark.flaky(max_runs=5, min_passes=1)
def test_fldr_sampler_py(a):
global num_failed_py
m = sum(a)
Expand All @@ -52,6 +53,7 @@ def test_fldr_sampler_py(a):

num_failed_c = 0
@pytest.mark.parametrize('a', a_list)
@pytest.mark.flaky(max_runs=5, min_passes=1)
def test_fldr_sampler_c(a):
global num_failed_c
m = sum(a)
Expand Down
Loading