-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.52 KB
/
python-app.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
41
42
43
44
45
46
47
name: Test Environment Setup
on: [push, pull_request]
jobs:
test_environment:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install virtualenv
run: |
pip install virtualenv
- name: Create virtual environment
run: |
python -m virtualenv env
- name: Activate virtual environment
run: |
cmd /c "env\Scripts\activate"
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Build executables with PyInstaller
run: |
pyinstaller --onefile --distpath . --icon assets\atreus.png src\install.py
pyinstaller --onefile --distpath . --icon assets\atreus.png src\trace_registry.py
pyinstaller --onefile --distpath . --icon assets\atreus.png src\watchdog.py
pyinstaller --onefile --distpath . --icon assets\atreus.png src\trace_executables.py
pyinstaller --noconsole --onefile --distpath . --icon assets\atreus.png src\atreus.py
- name: Run executables
run: |
Start-Process -FilePath ".\install.exe" -Verb RunAs
Start-Process -FilePath ".\watchdog.exe" -Verb RunAs
Start-Process -FilePath ".\trace_registry.exe" -Verb RunAs
Start-Process -FilePath ".\trace_executables.exe" -Verb RunAs
Start-Process -FilePath ".\atreus.exe" -Verb RunAs