Skip to content

Commit

Permalink
Merge pull request #161 from NREL/f2/add-testpypi-to-ci
Browse files Browse the repository at this point in the history
Add GitHub Action to Test Uploading PyPI
  • Loading branch information
calbaker authored Dec 5, 2024
2 parents 3e39fee + f9771fb commit 10d4a03
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,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 @@ -110,7 +111,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 @@ -120,7 +121,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 @@ -131,7 +132,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

0 comments on commit 10d4a03

Please sign in to comment.