Skip to content

Commit

Permalink
include sdist in artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Jun 24, 2024
1 parent 19b842c commit 4363268
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Check Wheels
run: twine check dist/*

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.whl
name: wheel-test-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}
41 changes: 40 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ jobs:
cibuildwheel: "cp311"

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -122,3 +124,40 @@ jobs:
# TWINE_USERNAME: ${{ secrets.PYPI_UN }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PW }}
# run: make upload
build_sdist:
strategy:
matrix:
os:
- ubuntu-22.04
python-version:
- 3.9

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
make develop
python -m pip install -U wheel twine setuptools
- name: Python SDist Steps
run: python setup.py sdist

- name: Check sdist
run: twine check dist/*.tar.gz

- name: Upload SDist
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fix:
python -m ruff format bt setup.py docs/source/conf.py

dist:
python setup.py sdist bdist_wheel
python setup.py sdist
python -m twine check dist/*

upload: dist
Expand Down

0 comments on commit 4363268

Please sign in to comment.