Skip to content

Commit

Permalink
pip-compile requirements-packaging.in & Test packaging workflow in …
Browse files Browse the repository at this point in the history
…CI (#549)
  • Loading branch information
hf-kklein authored Sep 28, 2023
1 parent 56123cf commit f95f8a6
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 10 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/packaging_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Packaging Test"

on: [pull_request]
jobs:
check_packaging:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.11"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run Packaging Test
run: |
tox -e test_packaging
22 changes: 16 additions & 6 deletions dev_requirements/requirements-packaging.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile '.\requirements-packaging.in'
# pip-compile requirements-packaging.in
#
build==1.0.3
# via -r requirements-packaging.in
certifi==2023.7.22
# via requests
charset-normalizer==3.2.0
# via requests
colorama==0.4.6
# via build
docutils==0.20.1
# via readme-renderer
idna==3.4
Expand All @@ -28,12 +32,16 @@ more-itertools==10.1.0
# via jaraco-classes
nh3==0.2.14
# via readme-renderer
packaging==23.1
# via build
pkginfo==1.9.6
# via twine
pygments==2.16.1
# via
# readme-renderer
# rich
pyproject-hooks==1.0.0
# via build
pywin32-ctypes==0.2.2
# via keyring
readme-renderer==42.0
Expand All @@ -48,13 +56,15 @@ rfc3986==2.0.0
# via twine
rich==13.5.3
# via twine
tomli==2.0.1
# via
# build
# pyproject-hooks
twine==4.0.2
# via -r .\requirements-packaging.in
# via -r requirements-packaging.in
urllib3==2.0.5
# via
# requests
# twine
wheel==0.41.2
# via -r .\requirements-packaging.in
zipp==3.17.0
# via importlib-metadata
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,11 @@ commands =


[testenv:test_packaging]
basepython = python3.10
skip_install = true
deps =
setuptools
setuptools-scm
-r dev_requirements/requirements-packaging.txt
commands =
python setup.py sdist bdist_wheel
python -m build
twine check dist/*

[testenv:generate_json_schemas]
Expand Down

0 comments on commit f95f8a6

Please sign in to comment.