Skip to content

Commit 5567049

Browse files
authored
Use build-and-inspect-python-package (#342)
1 parent 6727f16 commit 5567049

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,8 @@ jobs:
1616
uses: actions/setup-python@v1
1717
with:
1818
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
19+
- name: Build and Check Package
20+
uses: hynek/[email protected]
2621
- name: Publish package to PyPI
2722
uses: pypa/gh-action-pypi-publish@master
2823
with:

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: test
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610

711
test:
@@ -38,3 +42,10 @@ jobs:
3842
- name: Test
3943
run: |
4044
tox -e ${{ matrix.tox_env }}
45+
46+
check-package:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v3
50+
- name: Build and Check Package
51+
uses: hynek/[email protected]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
author_email="[email protected]",
2121
description="Thin-wrapper around the mock package for easier use with pytest",
2222
long_description=open("README.rst", encoding="utf-8").read(),
23+
long_description_content_type="text/x-rst",
2324
keywords="pytest mock",
2425
extras_require={"dev": ["pre-commit", "tox", "pytest-asyncio"]},
2526
classifiers=[

0 commit comments

Comments
 (0)