Skip to content

Commit f24166d

Browse files
author
brentru
committed
update workflow
1 parent fc69311 commit f24166d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 5 deletions
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:
25-
SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }}
26-
SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }}
27+
28+
- name: Run unittests
29+
with: # Set the secret as an input
30+
SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }}
31+
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 ..

0 commit comments

Comments
 (0)