Skip to content

Commit 8df8524

Browse files
authored
Merge pull request #122 from brentru/fix-env-monitor
Update environmental monitor example
2 parents f5fce9f + dd73f60 commit 8df8524

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/build.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,32 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11+
1112
- name: Set up Python 3.6
1213
uses: actions/setup-python@v1
1314
with:
1415
python-version: 3.6
16+
1517
- name: Install dependencies
1618
run: |
1719
python -m pip install --upgrade pip
1820
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
21+
1922
- name: Install library
2023
run: python3 setup.py install
24+
2125
- name: Install sphinx
2226
run: pip3 install pylint Sphinx sphinx-rtd-theme
23-
- name: Run all unittests
24-
env:
27+
28+
- name: Run unittests
29+
env:
2530
SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }}
2631
SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }}
2732
run: |
2833
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
3035
cd ..
36+
3137
- name: Generate documentation
3238
run: |
3339
cd docs && sphinx-build -E -W -b html . _build/html && cd ..

examples/basics/environmental_monitor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787

8888
# Sample VEML6070
8989
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
9292
return uv_raw
9393

9494
while True:

0 commit comments

Comments
 (0)