File tree Expand file tree Collapse file tree 4 files changed +14
-43
lines changed Expand file tree Collapse file tree 4 files changed +14
-43
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,21 @@ jobs:
10
10
runs-on : ${{ matrix.os }}
11
11
12
12
steps :
13
- - name : Checkout code
13
+ - name : 01. Checkout code
14
14
uses : actions/checkout@v4
15
15
16
- - name : Set up Python
16
+ - name : 02. Set up Python
17
17
uses : actions/setup-python@v4
18
18
with :
19
19
python-version : ' 3.12'
20
20
21
- - name : Install dependencies
21
+ - name : 03. Install dependencies
22
22
run : |
23
23
python -m pip install --upgrade pip
24
24
pip install -r requirements.txt
25
25
pip install pyinstaller
26
26
27
- - name : Build executable
27
+ - name : 04. Build executable
28
28
run : |
29
29
if [[ "${{ runner.os }}" == "Windows" ]]; then
30
30
pyinstaller --onefile --name myapp-${{ runner.os }}.exe src/app.py
Original file line number Diff line number Diff line change @@ -11,15 +11,19 @@ jobs:
11
11
matrix :
12
12
python-version : ["3.8", "3.9", "3.10"]
13
13
steps :
14
- - uses : actions/checkout@v4
15
- - name : Set up Python ${{ matrix.python-version }}
14
+ - name : 01. Project checkout
15
+ uses : actions/checkout@v4
16
+
17
+ - name : 02. Set up Python ${{ matrix.python-version }}
16
18
uses : actions/setup-python@v3
17
19
with :
18
20
python-version : ${{ matrix.python-version }}
19
- - name : Install dependencies
21
+
22
+ - name : 03. Install dependencies
20
23
run : |
21
24
python -m pip install --upgrade pip
22
25
pip install pylint
26
+
23
27
- name : Analysing the code with pylint
24
28
run : |
25
29
pylint $(git ls-files '*.py')
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ conda 24.9.2
25
25
python -m venv .venv
26
26
.\. venv\S cripts\a ctivate
27
27
pip install -r .\r equirements.txt # pip freeze > requirements.txt
28
+
29
+ # 如果是第二种情况且你用conda且项目有 environment.yml,也可以这样:
30
+ conda env update --file environment.yml --name base # conda env export > environment.yml
28
31
```
29
32
30
33
编译/运行
You can’t perform that action at this time.
0 commit comments