@@ -2,7 +2,7 @@ name: Upload Python Package
2
2
3
3
on :
4
4
release :
5
- types : [published]
5
+ types : [ published ]
6
6
7
7
permissions :
8
8
contents : read
@@ -12,29 +12,29 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - uses : actions/checkout@v4
16
-
17
- - name : Set up Python
18
- uses : actions/setup-python@v3
19
- with :
20
- python-version : ' 3.x '
21
-
22
- - name : Install dependencies
23
- run : |
24
- python -m pip install --upgrade pip
25
- pip install -r requirements.txt
26
- pip install -r dev_requirements.txt
27
-
28
- - name : Lint with flake8
29
- run : |
30
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32
-
33
- - name : Build package
34
- run : python -m build
35
-
36
- - name : Publish package
37
- uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
38
- with :
39
- user : __token__
40
- password : ${{ secrets.PYPI_API_TOKEN }}
15
+ - uses : actions/checkout@v4
16
+
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v3
19
+ with :
20
+ python-version : ' 3.9 '
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ python -m pip install --upgrade pip
25
+ pip install -r requirements.txt
26
+ pip install -r dev_requirements.txt
27
+
28
+ - name : Lint with flake8
29
+ run : |
30
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32
+
33
+ - name : Build package
34
+ run : python -m build
35
+
36
+ - name : Publish package
37
+ uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
38
+ with :
39
+ user : __token__
40
+ password : ${{ secrets.PYPI_API_TOKEN }}
0 commit comments