File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,10 @@ jobs:
18
18
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
19
19
- name : Install library
20
20
run : python3 setup.py install
21
- - name : Secret
21
+ - name : Run all unittests
22
22
env :
23
23
secret_io_key : ${{ secrets.CI_IO_KEY }}
24
24
secret_io_user : ${{ secrets.CI_IO_USERNAME }}
25
- run : cd tests/
26
- - name : Run all unittests
27
25
run : |
28
26
cd tests/
29
- python3 -m unittest discover
27
+ AIO_KEY=secret_io_key AIO_USER=secret_io_user python -m unittest discover
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def get_test_key(self):
28
28
"""Return the AIO key specified in the ADAFRUIT_IO_KEY environment
29
29
variable, or raise an exception if it doesn't exist.
30
30
"""
31
- key = os .environ [secret_io_key ]
31
+ key = os .environ [AIO_KEY ]
32
32
if key is None :
33
33
raise RuntimeError ("ADAFRUIT_IO_KEY environment variable must be " \
34
34
"set with valid Adafruit IO key to run this test!" )
@@ -38,7 +38,7 @@ def get_test_username(self):
38
38
"""Return the AIO username specified in the ADAFRUIT_IO_USERNAME
39
39
environment variable, or raise an exception if it doesn't exist.
40
40
"""
41
- username = os .environ [secret_io_user ]
41
+ username = os .environ [AIO_USER ]
42
42
if username is None :
43
43
raise RuntimeError ("ADAFRUIT_IO_USERNAME environment variable must be " \
44
44
"set with valid Adafruit IO username to run this test!" )
You can’t perform that action at this time.
0 commit comments