Skip to content

Update basic-tests.yml #327

Update basic-tests.yml

Update basic-tests.yml #327

Workflow file for this run

name: Basic Tests
on: [push]
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
# ---
- run: apt-get update
- run: apt-get install -y mosquitto git libc6
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: apt-get install -y python3.11 python3-pip
# ---
- run: pip install -r ./tests/requirements.txt
- run: pip install -r ./platform/requirements.txt
- run: pip install ./client/
# ---
- run: mosquitto -d
# ---
- name: Start the platform
run: >
python ./platform/panduza_platform/__main__.py &
sleep 1
- name: Export test env variables
uses: cardinalby/export-env-action@v1
with:
envFile: './tests/envs/fake_bench.env'
# ---
- name: Execute tests
working-directory: platform/tests/auto
run: robot --pythonpath benches/virtual:. tests/*
# ---
- uses: actions/upload-artifact@v3
if: always()
with:
name: tests-report
path: platform/tests/auto
# ---
- run: echo "🎉 Basic Tests finished !"