File tree 2 files changed +19
-8
lines changed
2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
- name : Upload Python Package
1
+ name : Build and Upload Python Package
2
2
3
3
on :
4
4
push :
15
15
- name : Set up Python
16
16
uses : actions/setup-python@v2
17
17
with :
18
- python-version : ' 3.x '
18
+ python-version : ' 3.8 '
19
19
- name : Install dependencies
20
20
run : |
21
21
python -m pip install --upgrade pip
25
25
python -m build --sdist --outdir dist/ .
26
26
- name : Install
27
27
run : |
28
- pip install dist/
28
+ pip install dist/*
29
29
- name : Run tests
30
30
run : |
31
31
pytest tests
@@ -44,25 +44,25 @@ jobs:
44
44
- name : Set up Python
45
45
uses : actions/setup-python@v2
46
46
with :
47
- python-version : ' 3.x '
47
+ python-version : ' 3.8 '
48
48
- name : Install dependencies
49
49
run : |
50
50
python -m pip install --upgrade pip
51
51
pip install -U setuptools wheel build
52
52
- name : Build
53
53
run : |
54
- python -m build --sdist --outdir dist/ .
54
+ python -m build --wheel --outdir dist/ .
55
55
- name : Install
56
56
run : |
57
- pip install dist/
57
+ pip install dist/*
58
58
- name : Run tests
59
59
run : |
60
60
pytest tests
61
61
pytest tests --mpl
62
62
- name : Store sdist
63
63
uses : actions/upload-artifact@v2
64
64
with :
65
- name : sdist
65
+ name : wheel
66
66
path : |
67
67
dist/*
68
68
78
78
- name : Set up Python
79
79
uses : actions/setup-python@v2
80
80
with :
81
- python-version : ' 3.x '
81
+ python-version : ' 3.8 '
82
82
- name : Install dependencies
83
83
run : |
84
84
python -m pip install --upgrade pip
Original file line number Diff line number Diff line change
1
+ # Making a Release of pytest-mpl
2
+
3
+ To make a new release of pytest-mpl follow the following steps:
4
+
5
+ * Update the chanelog with the date of the release, and ensure that all relevant PRs have changelog entries.
6
+ * Push the chanelog to master (via a PR)
7
+ * Ensure the sdist and wheel GitHub Actions jobs succeeded on master after the merge of the changelog.
8
+ * Tag the new release, using the format ` vX.Y.X ` .
9
+ * Push the tag with ` git push upstream master --follow-tags `
10
+ * Watch as GitHub actions builds the sdist and universal wheel and pushes them to PyPI for you.
11
+ * Enjoy the beverage of your choosing 🍻.
You can’t perform that action at this time.
0 commit comments