the scan must be restarted if the platform interface is in init state #235
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: Basic Tests | |
on: [push] | |
jobs: | |
Tests: | |
runs-on: ubuntu-latest | |
container: ubuntu:20.04 | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
# --- | |
- run: apt-get update | |
- run: apt-get install -y mosquitto git | |
- run: apt-get install -y python3 python3-pip | |
# --- | |
- run: pip install -r ./tests/requirements.txt | |
- run: pip install -r ./platform/requirements.txt | |
- run: pip install ./client/ | |
# --- | |
- run: pzadmin init test_hunt_directory | |
# --- | |
# - run: python3 ./platform/deploy/pza-py-platform-run.py | |
# env: | |
# HUNT: 1 | |
# --- | |
- run: mosquitto -d | |
# --- | |
- name: Start the platform | |
run: > | |
python3 ./platform/panduza_platform/__main__.py ./tests/pza_platform/tree.json & | |
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: tests | |
run: robot virtual_tests/* | |
# --- | |
- name: Debug | |
run: ls -la . | |
# --- | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: tests-report | |
path: tests/ | |
# --- | |
- run: echo "🎉 Basic Tests finished !" | |