Skip to content

Commit 292c1ce

Browse files
numpy.random fix BitGenerator attribute missing (#340)
* Updated the ann package version * Bumping version to 0.7.28 * Fixed numpy BitGenerator() issue * testing on ubuntu 18.04 and 20.04 * Using codecov v2 * Using codecov v2
1 parent 2ce1d8d commit 292c1ce

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/tox.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
strategy:
1111
matrix:
1212
python-version: [ 3.6, 3.7, 3.8 ]
13-
os: [ ubuntu-latest ]
13+
os: [ ubuntu-20.04, ubuntu-18.04 ]
1414
env:
1515
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1616
USING_COVERAGE: "3.8"
17+
USING_COVERAGE_OS: "ubuntu-20.04"
1718

1819
runs-on: ${{ matrix.os }}
1920
name: os ${{ matrix.os }} python ${{ matrix.python-version }} Linting, testing, and compliance
@@ -50,7 +51,7 @@ jobs:
5051
tox
5152
5253
- name: Upload coverage to Codecov
53-
uses: codecov/codecov-action@v1
54-
if: contains(env.USING_COVERAGE, matrix.python-version)
54+
uses: codecov/codecov-action@v2
55+
if: contains(env.USING_COVERAGE, matrix.python-version) && contains(env.USING_COVERAGE_OS, matrix.os)
5556
with:
5657
fail_ci_if_error: true

redisbench_admin/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import logging
99
import os
1010
import sys
11-
11+
import numpy
1212
import toml
1313

1414
from redisbench_admin import __version__
@@ -27,6 +27,7 @@
2727
from redisbench_admin.watchdog.args import create_watchdog_arguments
2828
from redisbench_admin.watchdog.watchdog import watchdog_command_logic
2929

30+
numpy.random.BitGenerator = numpy.random.bit_generator.BitGenerator
3031

3132
LOG_LEVEL = logging.DEBUG
3233
if os.getenv("VERBOSE", "0") == "0":

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ commands =
99
coverage erase
1010
coverage run --include=redisbench_admin/* -m pytest -ra {posargs}
1111
coverage report -m
12+
coverage xml
1213

1314
docker =
1415
rts_datasink

0 commit comments

Comments
 (0)