Skip to content

Commit

Permalink
Don't use separate job for Pyodide wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jul 12, 2024
1 parent 3fb0832 commit 10007f0
Showing 1 changed file with 7 additions and 48 deletions.
55 changes: 7 additions & 48 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ jobs:
- [windows-2022, win_amd64]
# TODO: support PyPy?
python: [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]]

# Build Pyodide wheels and upload them to Anaconda.org
# NOTE: this job is similar to the one in unit-tests.yml except for the fact
# that it uses cibuildwheel instead of a standard Pyodide xbuildenv setup.
include:
- buildplat: [ubuntu-22.04, pyodide_wasm32]
- python: ["cp312", "3.12"]
env:
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
Expand Down Expand Up @@ -199,51 +206,3 @@ jobs:
source ci/upload_wheels.sh
set_upload_vars
upload_wheels
# Build Pyodide wheels and upload them to Anaconda.org
# NOTE: this job is similar to the one in unit-tests.yml except for the fact
# that it uses cibuildwheel instead of a standard Pyodide xbuildenv setup.
build_pyodide_wheels:
name: Build wheel for pyodide_wasm32

# Run on schedule, manual (workflow dispatch), and push events
# Skip on PRs, because these are running in the unit tests job already

# TODO: Uncomment the following condition(s) when this PR is ready to be merged
# if: >-
# (github.event_name == 'schedule') ||
# (github.event_name == 'workflow_dispatch') &&
# (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ( ! endsWith(github.ref, 'dev0')))

runs-on: ubuntu-22.04
steps:
- name: Checkout pandas Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build WASM wheel for pandas
uses: pypa/cibuildwheel@v2.19.1
with:
output-dir: ./wheelhouse
env:
CIBW_PLATFORM: pyodide

- uses: actions/upload-artifact@v4
with:
name: pyodide_wheel
path: ./wheelhouse/*.whl

- name: Upload Pyodide wheels
if: >-
success() &&
(github.event_name == 'schedule') ||
(github.event_name == 'workflow_dispatch') &&
(github.repository == 'pandas-dev/pandas')
shell: bash -el {0}
env:
PANDAS_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.PANDAS_NIGHTLY_UPLOAD_TOKEN }}
run: |
source ci/upload_wheels.sh
set_upload_vars
upload_wheels

0 comments on commit 10007f0

Please sign in to comment.