Skip to content

Commit

Permalink
Manipulate source path for wheel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Dec 10, 2024
1 parent feab9e3 commit 92d7af6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_upload_pypi_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ jobs:
steps:
- name: Checkout project (for test files)
uses: actions/checkout@v4
path: euphonic_from_git

- name: Delete source (to ensure we are using sdist only)
shell: bash -l {0}
run: rm -rf euphonic
run: rm -rf euphonic_from_git/euphonic

- name: Download sdist
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -113,6 +114,10 @@ jobs:
run: |
python -m pip install --upgrade pip build wheel twine
- name: List contents of GITHUB_WORKSPACE
shell: bash -l {0}
run: ls -R ${GITHUB_WORKSPACE}

- name: Build wheels from sdist
uses: pypa/[email protected]
env:
Expand All @@ -124,7 +129,7 @@ jobs:
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""

CIBW_TEST_EXTRAS: "test,brille,phonopy_reader,matplotlib"
CIBW_TEST_COMMAND: python ${{ github.workspace }}/tests_and_analysis/test/run_tests.py
CIBW_TEST_COMMAND: python ${{ github.workspace }}/euphonic_from_git/tests_and_analysis/test/run_tests.py

with:
output-dir: wheelhouse
Expand Down

0 comments on commit 92d7af6

Please sign in to comment.