From 0c78bba1646ae879e5045b3e4822d89dad6229ac Mon Sep 17 00:00:00 2001 From: "Adam J. Jackson" Date: Tue, 10 Dec 2024 09:34:50 +0000 Subject: [PATCH] Delete source where unneeded, dry-run the PyPI file collection --- .../workflows/build_upload_pypi_wheels.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_upload_pypi_wheels.yml b/.github/workflows/build_upload_pypi_wheels.yml index 5fe2ee7cc..d34e3e57e 100644 --- a/.github/workflows/build_upload_pypi_wheels.yml +++ b/.github/workflows/build_upload_pypi_wheels.yml @@ -56,10 +56,15 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - name: Checkout project (for test files) + uses: actions/checkout@v4 with: fetch-depth: 0 # Ensure tags are fetched for versioning + - name: Delete source (to ensure we are using sdist only) + shell: bash -l {0} + run: rm -rf euphonic + - name: Download sdist uses: actions/download-artifact@v4 with: @@ -186,15 +191,19 @@ jobs: - name: Checkout repository (for tests and test data) uses: actions/checkout@v4 + - name: Delete source (to ensure we are testing INSTALLED version) + shell: bash -l {0} + run: rm -rf euphonic + - name: run tests shell: bash -l {0} run: python tests_and_analysis/test/run_tests.py --report publish: - if: github.event_name == 'release' + # if: github.event_name == 'release' needs: [build-wheels,test-sdist] - name: Upload release to PyPI + name: Upload release to PyPI (dry-run) runs-on: ubuntu-latest environment: name: pypi @@ -216,5 +225,5 @@ jobs: - name: List Files run: ls -R - - name: Upload wheels to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + # - name: Upload wheels to PyPI + # uses: pypa/gh-action-pypi-publish@release/v1