Skip to content

Commit

Permalink
Added twine check to ensure packages are valid and can be uploaded to…
Browse files Browse the repository at this point in the history
… PyPI
  • Loading branch information
carlio committed Mar 1, 2022
1 parent e108e82 commit 3b793e4
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 10 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,18 @@ jobs:
python -m pip install --disable-pip-version-check -U pip poetry
poetry install
pytest --benchmark-disable --cov --cov-report= tests/
# - name: Report coverage
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# . venv/bin/activate
# coveralls --service=github
- name: Check that Prospector can run
run: |
. venv/bin/activate
echo "Checking prospector can run; don't care about messages found, only that it runs successfully"
prospector --quiet --zero-exit
echo "Prospector ran successfully."
- name: Build and validate packages
run: |
. venv/bin/activate
echo "Building packages"
rm -rf dist/
poetry build
echo "Validating packages"
twine check dist/*
echo "Packages build and valdiate successfully."
Loading

0 comments on commit 3b793e4

Please sign in to comment.