File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 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
22
33on :
44 push :
1515 - name : Set up Python
1616 uses : actions/setup-python@v2
1717 with :
18- python-version : ' 3.x '
18+ python-version : ' 3.8 '
1919 - name : Install dependencies
2020 run : |
2121 python -m pip install --upgrade pip
2525 python -m build --sdist --outdir dist/ .
2626 - name : Install
2727 run : |
28- pip install dist/
28+ pip install dist/*
2929 - name : Run tests
3030 run : |
3131 pytest tests
@@ -44,25 +44,25 @@ jobs:
4444 - name : Set up Python
4545 uses : actions/setup-python@v2
4646 with :
47- python-version : ' 3.x '
47+ python-version : ' 3.8 '
4848 - name : Install dependencies
4949 run : |
5050 python -m pip install --upgrade pip
5151 pip install -U setuptools wheel build
5252 - name : Build
5353 run : |
54- python -m build --sdist --outdir dist/ .
54+ python -m build --wheel --outdir dist/ .
5555 - name : Install
5656 run : |
57- pip install dist/
57+ pip install dist/*
5858 - name : Run tests
5959 run : |
6060 pytest tests
6161 pytest tests --mpl
6262 - name : Store sdist
6363 uses : actions/upload-artifact@v2
6464 with :
65- name : sdist
65+ name : wheel
6666 path : |
6767 dist/*
6868
7878 - name : Set up Python
7979 uses : actions/setup-python@v2
8080 with :
81- python-version : ' 3.x '
81+ python-version : ' 3.8 '
8282 - name : Install dependencies
8383 run : |
8484 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