Skip to content

Commit 5150cbc

Browse files
committed
Add metadata validation test
* Incorrect readme block publish
1 parent 90e3d24 commit 5150cbc

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,25 @@ jobs:
9292
# - name: Check imports sorting with isort
9393
# run: |
9494
# isort -c --diff logwrap
95+
Metadata:
96+
name: Validate metadata
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@v3
100+
- name: Set up Python
101+
uses: actions/setup-python@v4
102+
with:
103+
python-version: '3.x'
104+
- name: Install dependencies
105+
run: |
106+
python -m pip install --upgrade pip
107+
pip install --upgrade twine build
108+
- name: Build package
109+
run: |
110+
python -m build -s
111+
- name: Validate metadata
112+
run: |
113+
twine check dist/*
95114
96115
Test:
97116
needs: [PEP8, PyLint, MyPy, Black] # isort is broken

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,6 @@ The main test mechanism for the package `logwrap` is using `tox`.
376376
Available environments can be collected via `tox -l`
377377

378378
CI/CD systems
379-
==========
379+
=============
380380

381381
`GitHub: <https://github.com/python-useful-helpers/logwrap/actions>`_ is used for functional tests.

0 commit comments

Comments
 (0)