Skip to content

Commit b1ac319

Browse files
committed
update workflow
1 parent b507945 commit b1ac319

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 60
1415
container:
1516
image: debian:trixie
1617
steps:
1718
- uses: actions/checkout@v4
1819
- name: Set up Python 3.11
1920
uses: actions/setup-python@v5
2021
with:
21-
python-version: 3.11
22+
python-version: '3.11'
2223
- name: Install sudo
2324
run: apt update && apt install -y sudo
2425
- name: Install dependencies
@@ -28,9 +29,9 @@ jobs:
2829
sudo bash mycodo/scripts/upgrade_commands.sh update-packages
2930
git clone --recursive https://github.com/WiringPi/WiringPi-Python.git && cd WiringPi-Python && git submodule update --init && cd WiringPi && ./build && cd ../..
3031
sudo bash mycodo/scripts/upgrade_commands.sh build-pigpiod
31-
sudo bash mycodo/scripts/upgrade_commands.sh update-influxdb-1
32+
sudo bash mycodo/scripts/upgrade_commands.sh update-influxdb-2
3233
sudo service influxdb start && sleep 3
33-
sudo bash mycodo/scripts/upgrade_commands.sh update-influxdb-1-db-user
34+
sudo bash mycodo/scripts/upgrade_commands.sh update-influxdb-2-db-user
3435
sudo useradd -M mycodo
3536
export PATH=/usr/bin:$PATH
3637
- name: Test setup components
@@ -49,20 +50,19 @@ jobs:
4950
env/bin/python mycodo/scripts/generate_manual_inputs.py
5051
env/bin/python mycodo/scripts/generate_manual_outputs.py
5152
env/bin/python mycodo/scripts/generate_manual_widgets.py
52-
printf "\n#### Generating API Manual\n"
53+
printf "\n#### Starting Flask Frontend\n"
5354
sudo env/bin/python mycodo/start_flask_ui.py &
5455
sleep 10
5556
wget --no-check-certificate -p https://127.0.0.1 -O /dev/null
56-
printf "\n# Installing npm\n"
57-
sudo mkdir -p /etc/apt/keyrings
58-
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
59-
NODE_MAJOR=20
60-
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
61-
sudo apt update
62-
sudo apt install nodejs
57+
- name: Set up Node.js
58+
uses: actions/setup-node@v4
59+
with:
60+
node-version: '20'
61+
- name: Generate API documentation
62+
run: |
6363
printf "\n# Installing redoc-cli\n"
6464
sudo npm install -g redoc-cli
65-
printf "\n# Generating manual\n"
65+
printf "\n# Generating API Manual\n"
6666
sudo bash mycodo/scripts/generate_manual_api.sh
6767
- name: Test with pytest
6868
run: |

0 commit comments

Comments
 (0)