Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Action to Test Uploading PyPI #161

Open
wants to merge 11 commits into
base: fastsim-2
Choose a base branch
from
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ jobs:
pip install -U setuptools-rust &&
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
rustup show

CIBW_BEFORE_BUILD_MACOS: >
rustup target add x86_64-apple-darwin
# - name: build windows 32bit binaries
# if: matrix.os == 'windows'
# run: cibuildwheel --output-dir dist
Expand All @@ -107,7 +108,7 @@ jobs:
- name: list dist files
run: ${{ matrix.ls || 'ls -lh' }} dist/

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist/*

Expand All @@ -117,7 +118,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: download files
uses: actions/download-artifact@v2.1.1
uses: actions/download-artifact@v4

- name: set up Python 3.10
uses: actions/setup-python@v4
Expand All @@ -128,7 +129,13 @@ jobs:

- run: twine check ./artifact/*

- name: upload files
- name: Publish distribution to Test PyPI
run: twine upload -r testpypi ./artifact/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.FASTSIM_TEST_PYPI_TOKEN }}

- name: Upload files to PyPI
run: twine upload ./artifact/*
env:
TWINE_USERNAME: __token__
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ jobs:
pip install -U setuptools-rust &&
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
rustup show

CIBW_BEFORE_BUILD_MACOS: >
rustup target add x86_64-apple-darwin
# - name: build windows 32bit binaries
# if: matrix.os == 'windows'
# run: cibuildwheel --output-dir dist
Expand Down
Loading