Skip to content

Commit

Permalink
Add twine check job (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Oct 6, 2024
1 parent 2d68728 commit 28f746a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
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 @@ -130,10 +130,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 @@ -151,6 +154,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

0 comments on commit 28f746a

Please sign in to comment.