-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.29 KB
/
python_build_and_test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Python Build and Test
on:
pull_request:
branches:
- main
jobs:
build_and_test_windows:
runs-on: windows-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Python Dependencies
run: |
pip install -r ./workflow/requirements.txt
- name: Build
run: |
chmod +x ./workflow/build.bat
bash ./workflow/build.bat
- name: Test
run: |
chmod +x ./workflow/test.bat
bash ./workflow/test.bat
build_and_test_linux:
runs-on: ubuntu-latest
timeout-minutes: 600
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Ubuntu Dependencies
run:
sudo apt-get install libgtk-3-dev
- name: Install Python Dependencies
run: |
pip install -r ./workflow/requirements.txt
- name: Build
run: |
chmod +x ./workflow/build.sh
bash ./workflow/build.sh
- name: Test
run: |
chmod +x ./workflow/test.sh
bash ./workflow/test.sh