Skip to content

Commit

Permalink
[CI] Fix wheels (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Apr 25, 2024
1 parent 6d63bd4 commit 7dbb864
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/nightly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,34 +98,6 @@ jobs:
/tmp/wheels/tensordict_nightly-*.whl \
--verbose
upload-wheel-mac:
# Don't run on forked repos.
if: github.repository_owner == 'pytorch'
needs: test-wheel-mac
runs-on: macos-latest
strategy:
matrix:
python_version: [["3.8", "3.8"], ["3.9", "3.9"], ["3.10", "3.10.3"], ["3.11", "3.11"]]
steps:
- name: Checkout tensordict
uses: actions/checkout@v2
- name: Download built wheels
uses: actions/download-artifact@v2
with:
name: tensordict-mac-${{ matrix.python_version[0] }}.whl
path: /tmp/wheels
- name: Push tensordict Binary to PYPI
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
python3 -mpip install twine
python3 -m twine upload \
--username __token__ \
--password "$PYPI_TOKEN" \
--skip-existing \
/tmp/wheels/tensordict_nightly-*.whl \
--verbose
test-wheel-linux:
# Don't run on forked repos.
if: github.repository_owner == 'pytorch'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:


test-wheel:
needs: [build-wheel-linux, build-wheel-mac]
needs: [build-wheel-linux]
strategy:
matrix:
os: [["linux", "ubuntu-20.04"]]
Expand Down

0 comments on commit 7dbb864

Please sign in to comment.