Skip to content

Commit

Permalink
ci: Add distribution verification checks to nightly wheel upload (net…
Browse files Browse the repository at this point in the history
…workx#6831)

* Use 'twine check' to verify distribution and list the contents of the
  dist and wheel for visual inspection of distribution content in the logs.
  • Loading branch information
matthewfeickert authored Aug 4, 2023
1 parent 0a808c9 commit d3e37f9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,20 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: |
- name: Install Python requirements
run: |
python -m pip install -r requirements/release.txt
python -m build --sdist --wheel
- uses: scientific-python/upload-nightly-action@main
- name: Build a wheel and a sdist
run: |
python -m build .
- name: Verify the distribution
run: twine check --strict dist/*
- name: List contents of sdist
run: python -m tarfile --list dist/networkx-*.tar.gz
- name: List contents of wheel
run: python -m zipfile --list dist/networkx-*.whl
- name: Upload nighlty wheel
uses: scientific-python/upload-nightly-action@main
with:
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_NIGHTLY }}
artifacts_path: dist/

0 comments on commit d3e37f9

Please sign in to comment.