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 d5b78e3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 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,12 @@ jobs:
steps:
- name: Checkout project (for test files)
uses: actions/checkout@v4
with:
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 +115,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 +130,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 d5b78e3

Please sign in to comment.