Browse Source

another github actions attempt

Thomas Buck 3 years ago
parent
commit
94baba9972

+ 49
- 0
.github/workflows/build.yml View File

@@ -0,0 +1,49 @@
1
+name: Build Distribution Packages
2
+
3
+on: [push]
4
+
5
+jobs:
6
+  build_mac:
7
+    runs-on: macos-latest
8
+    steps:
9
+    - name: Checkout repository
10
+      uses: actions/checkout@v2
11
+    - name: Install Python Environment
12
+      uses: actions/setup-python@v2
13
+      with:
14
+        python-version: 3.9
15
+    - name: Install dependencies
16
+      run: |
17
+        python -m pip install --upgrade pip
18
+        pip install PyQt5
19
+        pip install py2exe
20
+    - name: Run Mac build
21
+      run: |
22
+        ./build_mac.sh
23
+    - name: Archive build result artifacts
24
+      uses: actions/upload-artifact@v2
25
+      with:
26
+        name: mac-build
27
+        path: |
28
+          ${{ github.workspace }}/build/dist
29
+  build_windows:
30
+    runs-on: windows-latest
31
+    steps:
32
+    - name: Checkout repository
33
+      uses: actions/checkout@v2
34
+    - name: Install Python Environment
35
+      uses: actions/setup-python@v2
36
+      with:
37
+        python-version: 3.7
38
+    - name: Install dependencies
39
+      run: |
40
+        python -m pip install --upgrade pip
41
+        pip install PyQt5
42
+        pip install py2exe
43
+    - name: Run Windows build
44
+      run: |
45
+        ./build_win.sh
46
+    - name: Show build results
47
+      run: |
48
+        ls ${{ github.workspace }}/build/win
49
+        ls ${{ github.workspace }}/build/dist

+ 0
- 25
.github/workflows/buildmac.yml View File

@@ -1,25 +0,0 @@
1
-name: Build Mac
2
-
3
-on: [push]
4
-
5
-jobs:
6
-  build:
7
-    runs-on: macos-latest
8
-    steps:
9
-    - uses: actions/checkout@v2
10
-    - uses: actions/setup-python@v2
11
-      with:
12
-        python-version: 3.9
13
-    - name: Install dependencies
14
-      run: |
15
-        python -m pip install --upgrade pip
16
-        pip install PyQt5
17
-        pip install py2exe
18
-    - name: Run Mac build
19
-      run: |
20
-        cd ${{ github.workspace }}
21
-        ./build_mac.sh
22
-    - name: Show build results
23
-      run: |
24
-        ls ${{ github.workspace }}/build/mac
25
-        ls ${{ github.workspace }}/build/dist

+ 0
- 25
.github/workflows/buildwindows.yml View File

@@ -1,25 +0,0 @@
1
-name: Build Windows
2
-
3
-on: [push]
4
-
5
-jobs:
6
-  build:
7
-    runs-on: windows-latest
8
-    steps:
9
-    - uses: actions/checkout@v2
10
-    - uses: actions/setup-python@v2
11
-      with:
12
-        python-version: 3.7
13
-    - name: Install dependencies
14
-      run: |
15
-        python -m pip install --upgrade pip
16
-        pip install PyQt5
17
-        pip install py2exe
18
-    - name: Run Windows build
19
-      run: |
20
-        cd ${{ github.workspace }}
21
-        ./build_win.sh
22
-    - name: Show build results
23
-      run: |
24
-        ls ${{ github.workspace }}/build/win
25
-        ls ${{ github.workspace }}/build/dist

+ 1
- 0
.github/workflows/pylint.yml View File

@@ -17,4 +17,5 @@ jobs:
17 17
         pip install pylint
18 18
     - name: Analysing the code with pylint
19 19
       run: |
20
+        cd src
20 21
         pylint `ls -R|grep .py$|xargs`

Loading…
Cancel
Save