Skip to content

Run Tests on Pull Request #18

Run Tests on Pull Request

Run Tests on Pull Request #18

Workflow file for this run

name: Run Tests on Pull Request
on:
pull_request:
branches:
- '**'
workflow_dispatch: # Manual trigger
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make
- name: Creating env file
run: cp .env.test.example .env
- name: Run make start
run: sudo make start
- name: Generate backdoor file
run: docker exec molehole_testing_python_app pyinstaller server.spec
- name: Run make serve_all_backdoors
run: sudo make serve_all_backdoors
- name: Run Pytest
run: |
docker exec -it molehole_testing_python_app pytest