Skip to content

Commit

Permalink
Merge pull request #4909 from neutrinoceros/build/minimal_dist_testing
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed May 22, 2024
2 parents 36a897f + 8511d69 commit 5ba4664
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
CIBW_ARCHS_WINDOWS: auto64
CIBW_ENVIRONMENT: "LDFLAGS='-static-libstdc++'"
CIBW_BUILD_VERBOSITY: 1
CIBW_TEST_SKIP: "*-manylinux*" # https://github.com/yt-project/yt/issues/4910
CIBW_TEST_COMMAND: python -c "import yt"

- uses: actions/upload-artifact@v4
with:
Expand All @@ -57,9 +59,22 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Build sdist
run: pipx run build --sdist

- name: Test sdist
run: |
python -m pip install "$(echo dist/*.tar.gz)"
python -m pip list
project_dir=$(pwd)
cd ../../
python -c "import yt"
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5ba4664

Please sign in to comment.