Skip to content

Commit 124c6f0

Browse files
authored
Merge pull request #275 from nicoddemus/split-workflows
2 parents 9aff4cf + ae5e541 commit 124c6f0

File tree

4 files changed

+78
-73
lines changed

4 files changed

+78
-73
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
10+
deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Python
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: "3.7"
19+
- name: Install wheel
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build
23+
- name: Build package
24+
run: |
25+
python -m build
26+
- name: Publish package to PyPI
27+
uses: pypa/gh-action-pypi-publish@master
28+
with:
29+
user: __token__
30+
password: ${{ secrets.pypi_token }}
31+
- name: Generate release notes
32+
run: |
33+
pip install pypandoc
34+
sudo apt-get install pandoc
35+
python scripts/gen-release-notes.py
36+
- name: GitHub Release
37+
uses: softprops/action-gh-release@v1
38+
with:
39+
body_path: scripts/latest-release-notes.md

.github/workflows/main.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
test:
8+
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python: ["3.7", "3.8", "3.9", "3.10"]
15+
os: [ubuntu-latest, windows-latest]
16+
include:
17+
- python: "3.7"
18+
tox_env: "py37"
19+
- python: "3.8"
20+
tox_env: "py38"
21+
- python: "3.9"
22+
tox_env: "py39"
23+
- python: "3.10"
24+
tox_env: "py310"
25+
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: Set up Python
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python }}
32+
- name: Install tox
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install tox
36+
- name: Test
37+
run: |
38+
tox -e ${{ matrix.tox_env }}

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ comparing calls.
3333
.. |anaconda| image:: https://img.shields.io/conda/vn/conda-forge/pytest-mock.svg
3434
:target: https://anaconda.org/conda-forge/pytest-mock
3535

36-
.. |ci| image:: https://github.com/pytest-dev/pytest-mock/workflows/build/badge.svg
36+
.. |ci| image:: https://github.com/pytest-dev/pytest-mock/workflows/test/badge.svg
3737
:target: https://github.com/pytest-dev/pytest-mock/actions
3838

3939
.. |coverage| image:: https://coveralls.io/repos/github/pytest-dev/pytest-mock/badge.svg?branch=master

0 commit comments

Comments
 (0)