From 00a0e3eed9032d52b08d219c719e9934d622593e Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:58:24 -0700 Subject: [PATCH] new workflow for smoketest --- .github/workflows/detection-smoketesting.yml | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/detection-smoketesting.yml diff --git a/.github/workflows/detection-smoketesting.yml b/.github/workflows/detection-smoketesting.yml new file mode 100644 index 0000000000..c1f9c7a4b7 --- /dev/null +++ b/.github/workflows/detection-smoketesting.yml @@ -0,0 +1,41 @@ +name: detection-smoketesting +on: + push: + schedule: + - cron: "44 4 * * *" +jobs: + docker-detection-smoketest: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + #with: + # ref: develop + + - uses: actions/setup-python@v2 + with: + python-version: "3.9" #Available versions here - https://github.com/actions/python-versions/releases easy to change/make a matrix/use pypy + architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified + cache: "pip" + + - name: Install Python Dependencies + run: | + python -m venv .venv + source .venv/bin/activate + python -m pip install wheel + python -m pip install -r requirements.txt + + - name: Run the Smoketesting + run: | + source .venv/bin/activate + cd bin/docker_detection_tester + python detection_testing_execution.py run --branch develop --mode smoketest --config_file test_config_github_actions.json --num_containers 1 + python summarize_json.py -o test_results/summary_smoketest.json -f test_results/summary.json --smoketest + + - name: Upload Test Results Files + uses: actions/upload-artifact@v2 + with: + name: smoketest_results + path: | + bin/docker_detection_tester/test_results/summary.json + bin/docker_detection_tester/test_results/summary_smoketest.json