File tree 5 files changed +65
-25
lines changed
5 files changed +65
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : Test and release
2
+
3
+ # Fires on all incoming commits
4
+ on : [push]
5
+
6
+ jobs :
7
+
8
+ # Test
9
+ test :
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ python : [3.6, 3.7, 3.8]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : actions/setup-python@v1
18
+ with :
19
+ python-version : ${{ matrix.python }}
20
+ - name : Install dependencies
21
+ run : pip install tox tox-gh-actions
22
+ - name : Run tests
23
+ run : tox --parallel
24
+ env :
25
+ TOX_PARALLEL_NO_SPINNER : 1
26
+
27
+ # Create a new semantic release
28
+ release :
29
+ needs : test
30
+ runs-on : ubuntu-latest
31
+ steps :
32
+ - uses : actions/checkout@v2
33
+ - uses : actions/setup-python@v1
34
+ with :
35
+ python-version : 3.8
36
+ - uses : cycjimmy/semantic-release-action@v2
37
+ with :
38
+ semantic_version : 17
39
+ extra_plugins : |
40
+ @semantic-release/exec@5
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ TWINE_USERNAME : __token__
44
+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches": [
3
+ "+([0-9])?(.{+([0-9]),x}).x",
4
+ "stable",
5
+ {"name": "alpha", "prerelease": true},
6
+ {"name": "beta", "prerelease": true},
7
+ {"name": "rc", "prerelease": true}
8
+ ],
9
+ "plugins": [
10
+ "@semantic-release/commit-analyzer",
11
+ "@semantic-release/release-notes-generator",
12
+ "@semantic-release/github",
13
+ ["@semantic-release/exec", {
14
+ "verifyConditionsCmd": "python -m pip install -U pip setuptools wheel twine",
15
+ "prepareCmd": "sed -i 's/0.0.dev0/${nextRelease.version}/' mezzanine/__init__.py",
16
+ "publishCmd": "python setup.py sdist bdist_wheel && twine upload dist/*"
17
+ }]
18
+ ]
19
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ global-exclude __pycache__
7
7
global-exclude *.py[co]
8
8
prune .tx
9
9
prune tests
10
+ exclude .releaserc
Original file line number Diff line number Diff line change 1
- __version__ = "4.3.1"
1
+ __version__ = "0.0.dev0" # Do not edit, managed by semantic-release
You can’t perform that action at this time.
0 commit comments