-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 916 Bytes
/
pr_workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Run Tests on Pull Request
on:
pull_request:
branches:
- master
types: [opened, synchronize]
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: sudo 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: |
sudo docker exec molehole_testing_python_app pytest