File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
steps :
10
10
- uses : actions/checkout@v2
11
+
11
12
- name : Set up Python 3.6
12
13
uses : actions/setup-python@v1
13
14
with :
14
15
python-version : 3.6
16
+
15
17
- name : Install dependencies
16
18
run : |
17
19
python -m pip install --upgrade pip
18
20
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
21
+
19
22
- name : Install library
20
23
run : python3 setup.py install
24
+
21
25
- name : Install sphinx
22
26
run : pip3 install pylint Sphinx sphinx-rtd-theme
23
- - name : Run all unittests
24
- env :
27
+
28
+ - name : Run unittests
29
+ env :
25
30
SECRET_IO_KEY : ${{ secrets.CI_IO_KEY }}
26
31
SECRET_IO_USER : ${{ secrets.CI_IO_USERNAME }}
27
32
run : |
28
33
cd tests/
29
- ADAFRUIT_IO_KEY=" $SECRET_IO_KEY" ADAFRUIT_IO_USERNAME=" $SECRET_IO_USER" python -m unittest discover
34
+ ADAFRUIT_IO_KEY=$SECRET_IO_KEY ADAFRUIT_IO_USERNAME=$SECRET_IO_USER python -m unittest discover
30
35
cd ..
36
+
31
37
- name : Generate documentation
32
38
run : |
33
39
cd docs && sphinx-build -E -W -b html . _build/html && cd ..
Original file line number Diff line number Diff line change 87
87
88
88
# Sample VEML6070
89
89
def sample_VEML ():
90
- for j in range (10 ):
91
- uv_raw = uv .read
90
+ for _ in range (10 ):
91
+ uv_raw = uv .uv_raw
92
92
return uv_raw
93
93
94
94
while True :
You can’t perform that action at this time.
0 commit comments