Skip to content

Commit

Permalink
CI: add pypi package check
Browse files Browse the repository at this point in the history
partially addresses #62
  • Loading branch information
orbeckst committed Sep 27, 2022
1 parent 5d4dcaf commit dac4cdb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,30 @@ jobs:
flags: unittests
fail_ci_if_error: true


pypi_check:
if: "github.repository == 'alchemistry/alchemtest'"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: install_tools
run: |
python -m pip install setuptools twine
- name: build alchemtest source dist
run: |
python setup.py sdist
- name: check package build sdist
run: |
DISTRIBUTION=$(ls -t1 dist/alchemtest-*.tar.gz | head -n 1)
test -n "${DISTRIBUTION}" || { echo "no distribution dist/alchemtest-*.tar.gz found"; exit 1; }
echo "twine check $DISTRIBUTION"
twine check $DISTRIBUTION

0 comments on commit dac4cdb

Please sign in to comment.