File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name : Build and package application
5
+
6
+ on :
7
+ push :
8
+ tags : " v*"
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ jobs :
14
+ build :
15
+
16
+ runs-on : windows-latest
17
+
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - name : Set up Python 3.13
21
+ uses : actions/setup-python@v5
22
+ with :
23
+ python-version : " 3.13"
24
+ - name : Install dependencies
25
+ run : |
26
+ python -m pip install --upgrade pip
27
+ pip install flake8 pytest build
28
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29
+ pip install pyinstaller
30
+ - name : Lint with flake8
31
+ run : |
32
+ # stop the build if there are Python syntax errors or undefined names
33
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36
+ - name : Build wheel
37
+ run : python build -m .
38
+ - name : PyInstaller
39
+ run : pyinstaller --name rabbit-hunter --onefile ./rabbithunter/__main__.py
40
+ - name : Upload Wheel and Exe
41
+ uses : actions/upload-artifact@v4
42
+ with :
43
+ name : dist
44
+ path : ./dist
45
+
46
+
47
+
48
+
49
+
You can’t perform that action at this time.
0 commit comments