Add sudo for apt install #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test mango | |
on: [push] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
pip install virtualenv | |
virtualenv venv | |
source venv/bin/activate | |
pip3 install -r requirements.txt | |
pip3 install -e . | |
sudo apt update | |
sudo apt install --assume-yes mosquitto | |
sudo service mosquitto start | |
pip3 install pytest | |
pip3 install coverage | |
- name: Test+Coverage | |
run: | | |
coverage run --source ./mango -m pytest | |
coverage report |