File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ jobs:
10
10
strategy :
11
11
matrix :
12
12
python-version : [ 3.6, 3.7, 3.8 ]
13
- os : [ ubuntu-latest ]
13
+ os : [ ubuntu-20.04, ubuntu-18.04 ]
14
14
env :
15
15
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
16
16
USING_COVERAGE : " 3.8"
17
+ USING_COVERAGE_OS : " ubuntu-20.04"
17
18
18
19
runs-on : ${{ matrix.os }}
19
20
name : os ${{ matrix.os }} python ${{ matrix.python-version }} Linting, testing, and compliance
50
51
tox
51
52
52
53
- 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)
55
56
with :
56
57
fail_ci_if_error : true
Original file line number Diff line number Diff line change 8
8
import logging
9
9
import os
10
10
import sys
11
-
11
+ import numpy
12
12
import toml
13
13
14
14
from redisbench_admin import __version__
27
27
from redisbench_admin .watchdog .args import create_watchdog_arguments
28
28
from redisbench_admin .watchdog .watchdog import watchdog_command_logic
29
29
30
+ numpy .random .BitGenerator = numpy .random .bit_generator .BitGenerator
30
31
31
32
LOG_LEVEL = logging .DEBUG
32
33
if os .getenv ("VERBOSE" , "0" ) == "0" :
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ commands =
9
9
coverage erase
10
10
coverage run --include =redisbench_admin/* -m pytest -ra {posargs}
11
11
coverage report -m
12
+ coverage xml
12
13
13
14
docker =
14
15
rts_datasink
You can’t perform that action at this time.
0 commit comments