Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and add CI job for packaging #14

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,45 @@ jobs:
- name: Run pylint with pylint_flask_sqlalchemy
run: |
pylint --load-plugins pylint_flask_sqlalchemy *.py

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install build
run: |
pip install build
- name: Run build
run: |
python -m build
- uses: actions/upload-artifact@v3
with:
name: source_dist
path: dist/*.tar.gz
- uses: actions/upload-artifact@v3
with:
name: built_dist
path: dist/*.whl

check-wheel:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: built_dist
path: wheel.whl
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install check_wheel_contents
run: |
pip install check_wheel_contents
- name: Run check_wheel_contents
run: |
python -m check_wheel_contents wheel.whl
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers =

[options]
zip_safe = false
packages = pylint_flask_sqlalchemy
include_package_data = true
python_requires = >= 3.6
install_requires =
Expand Down