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

Add twine check job #280

Merged
merged 2 commits into from
Oct 6, 2024
Merged
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
21 changes: 21 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,24 @@ jobs:
CIBW_SKIP: pp*
CIBW_TEST_COMMAND: python -m unittest discover ephem
CIBW_TEST_REQUIRES: tzdata

twine_check:
name: Run twine check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.12'

- name: Install dependencies
run: python -m pip install build twine

- name: Build sdist and wheel
run: python -m build

- name: Run twine check
run: ls dist/* | xargs twine check
10 changes: 8 additions & 2 deletions .github/workflows/github-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,13 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.12'

- name: Install dependencies
run: python -m pip install build

- name: Build sdist
run: python setup.py sdist
run: python -m build --sdist

- uses: actions/upload-artifact@v4
with:
Expand All @@ -150,6 +153,9 @@ jobs:
path: dist
merge-multiple: true

- name: List files to upload
run: ls -1 dist/

- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
version = __version__,
description = 'Compute positions of the planets and stars',
long_description = README,
#long_description_content_type = 'text/x-rst',
long_description_content_type = 'text/x-rst',
license = 'MIT',
author = 'Brandon Rhodes',
author_email = '[email protected]',
Expand Down
Loading