align it with the existing light/dark cycle automation #10
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: CI | |
on: [pull_request, push, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.9"] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install | |
run: | | |
pip install -e . | |
pip install -e git+https://github.com/pioreactor/pioreactor.git#egg=pioreactor[worker] | |
pip install pytest fake-rpi | |
- name: Mosquitto MQTT Broker in GitHub Actions | |
uses: Namoshek/mosquitto-github-action@v1 | |
with: | |
version: '1.6' | |
- name: Create dot_pioreactor folder | |
run: | | |
mkdir -p .pioreactor/storage | |
- name: Get config | |
run: wget https://raw.githubusercontent.com/Pioreactor/pioreactor/master/config.dev.ini | |
- name: Run tests | |
run: pytest -vv led_calibration_plugin/test_led_calibration.py | |
env: | |
TESTING: 1 | |
TMPDIR: /tmp/ |