File tree 4 files changed +64
-4
lines changed
4 files changed +64
-4
lines changed Original file line number Diff line number Diff line change 67
67
run : |
68
68
python -m unittest discover -s tests -t tests
69
69
70
- coverall :
70
+ coveralls :
71
71
runs-on : ubuntu-latest
72
72
steps :
73
73
- name : Checkout
98
98
- name : Upload coverage data to coveralls.io
99
99
run : coveralls --service=github
100
100
env :
101
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
102
+
103
+ release :
104
+ name : Release
105
+ runs-on : ubuntu-latest
106
+ needs : [ tests, coveralls ]
107
+ steps :
108
+ - name : Checkout
109
+ uses : actions/checkout@v2
110
+ with :
111
+ fetch-depth : 0
112
+
113
+ - name : Setup Node.js
114
+ uses : actions/setup-node@v1
115
+
116
+ - name : Setup
117
+ run : npm install -g semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator semantic-release-pypi
118
+
119
+ - name : Set up python
120
+ uses : actions/setup-python@v2
121
+ with :
122
+ python-version : 3.8
123
+
124
+ - name : Install setuptools
125
+ run : python -m pip install --upgrade setuptools wheel twine
126
+
127
+ - name : Release
128
+ env :
129
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
130
+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
131
+ run : npx semantic-release
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches" : " master" ,
3
+ "plugins" : [
4
+ " @semantic-release/commit-analyzer" ,
5
+ " @semantic-release/release-notes-generator" ,
6
+ " semantic-release-pypi" ,
7
+ " @semantic-release/github" ,
8
+ [
9
+ " @semantic-release/changelog" ,
10
+ {
11
+ "changelogFile" : " CHANGELOG.md" ,
12
+ "changelogTitle" : " # Semantic Versioning Changelog"
13
+ }
14
+ ],
15
+ [
16
+ " @semantic-release/git" ,
17
+ {
18
+ "message" : " chore(release): ${nextRelease.version} [skip ci]\n\n ${nextRelease.notes}" ,
19
+ "assets" : [" CHANGELOG.md" , " setup.py" , " setup.cfg" ]
20
+ }
21
+ ]
22
+ ]
23
+ }
Original file line number Diff line number Diff line change
1
+ [bdist_wheel]
2
+ universal = 1
3
+
4
+ [metadata]
5
+ description-file = README.md
6
+ version = 0.0.1
Original file line number Diff line number Diff line change 1
- from setuptools import setup , find_packages
1
+ from setuptools import setup , find_packages , __version__
2
+
2
3
3
4
with open ("README.md" , "r" ) as readme_file :
4
5
readme = readme_file .read ()
20
21
"Programming Language :: Python :: 3.8" ,
21
22
"License :: OSI Approved :: Apache Software License" ,
22
23
],
23
- )
24
+ )
You can’t perform that action at this time.
0 commit comments