From fc69311d3781656382491d5bb2f9bf0ad48e5db6 Mon Sep 17 00:00:00 2001 From: brentru Date: Wed, 4 Nov 2020 10:48:43 -0500 Subject: [PATCH 1/3] update VEML6070 function sig --- examples/basics/environmental_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/basics/environmental_monitor.py b/examples/basics/environmental_monitor.py index 144010d..21be64e 100644 --- a/examples/basics/environmental_monitor.py +++ b/examples/basics/environmental_monitor.py @@ -87,8 +87,8 @@ sgp30.set_iaq_baseline(0x8973, 0x8aae) # Sample VEML6070 def sample_VEML(): - for j in range(10): - uv_raw = uv.read + for _ in range(10): + uv_raw = uv.uv_raw return uv_raw while True: From f24166d0635178ee31621fb64e7b33b3ea84a0d4 Mon Sep 17 00:00:00 2001 From: brentru Date: Fri, 11 Dec 2020 15:42:59 -0500 Subject: [PATCH 2/3] update workflow --- .github/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac73401..b7fad9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,26 +8,32 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up Python 3.6 uses: actions/setup-python@v1 with: python-version: 3.6 + - name: Install dependencies run: | python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Install library run: python3 setup.py install + - name: Install sphinx run: pip3 install pylint Sphinx sphinx-rtd-theme - - name: Run all unittests - env: - SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }} - SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }} + + - name: Run unittests + with: # Set the secret as an input + SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }} + SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }} run: | cd tests/ - ADAFRUIT_IO_KEY="$SECRET_IO_KEY" ADAFRUIT_IO_USERNAME="$SECRET_IO_USER" python -m unittest discover + ADAFRUIT_IO_KEY=$SECRET_IO_KEY ADAFRUIT_IO_USERNAME=$SECRET_IO_USER python -m unittest discover cd .. + - name: Generate documentation run: | cd docs && sphinx-build -E -W -b html . _build/html && cd .. From dd73f604eba12ca3797d7900d8aa5e3482d3c82d Mon Sep 17 00:00:00 2001 From: brentru Date: Fri, 11 Dec 2020 15:45:01 -0500 Subject: [PATCH 3/3] de-indent --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7fad9e..e027b55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,9 +26,9 @@ jobs: run: pip3 install pylint Sphinx sphinx-rtd-theme - name: Run unittests - with: # Set the secret as an input - SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }} - SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }} + env: + SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }} + SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }} run: | cd tests/ ADAFRUIT_IO_KEY=$SECRET_IO_KEY ADAFRUIT_IO_USERNAME=$SECRET_IO_USER python -m unittest discover