Skip to content

Commit cd7bf9f

Browse files
add nox task to check build packages
1 parent 08c6536 commit cd7bf9f

File tree

6 files changed

+559
-4
lines changed

6 files changed

+559
-4
lines changed

.github/workflows/checks.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,19 @@ jobs:
191191
name: coverage-python${{ matrix.python-version }}-fast
192192
path: .coverage
193193
include-hidden-files: true
194+
195+
Build-Packages:
196+
name: Build Package Check
197+
needs: [ Documentation, Lint, Type-Check, Security, Format, build-matrix, Tests ]
198+
runs-on: ubuntu-24.04
199+
permissions:
200+
contents: read
201+
steps:
202+
- name: SCM Checkout
203+
uses: actions/checkout@v4
204+
205+
- name: Setup Python & Poetry Environment
206+
uses: ./.github/actions/python-environment
207+
208+
- name: Run Distribution Check
209+
run: poetry run -- nox -s lint:build-packages

doc/changes/unreleased.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# Unreleased
2+
3+
## Feature
4+
5+
* #494: Create check of built packages

exasol/toolbox/nox/_lint.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,10 @@ def import_lint(session: Session) -> None:
177177
"Please make sure you have a configuration file for the importlinter"
178178
)
179179
_import_lint(session=session, path=path)
180+
181+
182+
@nox.session(name="lint:build-packages", python=False)
183+
def dist_check(session: Session) -> None:
184+
"""Checks whether your distribution’s long description will render correctly on PyPI"""
185+
session.run("poetry", "build")
186+
session.run("twine", "check", "./dist/*")

exasol/toolbox/templates/github/workflows/checks.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,19 @@ jobs:
188188
name: coverage-python${{ matrix.python-version }}-fast
189189
path: .coverage
190190
include-hidden-files: true
191+
192+
Build-Packages:
193+
name: Build Package Check
194+
needs: [ Documentation, Lint, Type-Check, Security, Format, build-matrix, Tests ]
195+
runs-on: ubuntu-24.04
196+
permissions:
197+
contents: read
198+
steps:
199+
- name: SCM Checkout
200+
uses: actions/checkout@v4
201+
202+
- name: Setup Python & Poetry Environment
203+
uses: ./.github/actions/python-environment
204+
205+
- name: Run Distribution Check
206+
run: poetry run -- nox -s lint:build-packages

0 commit comments

Comments
 (0)