From 63bbfd73aef18a65f68369fc72258abb6134bd6b Mon Sep 17 00:00:00 2001 From: "Adam J. Jackson" Date: Tue, 10 Dec 2024 09:19:17 +0000 Subject: [PATCH] More action fiddling; reorder checkout/download, set run conditions Tweaking the run conditions temporarily while troubleshooting this; these should be reverted. --- .github/workflows/build_upload_pypi_wheels.yml | 18 ++++++++++-------- .github/workflows/run_tests.yml | 4 ++-- .github/workflows/test_windows_sdist.yml | 4 ++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_upload_pypi_wheels.yml b/.github/workflows/build_upload_pypi_wheels.yml index 3e07034b5..5fe2ee7cc 100644 --- a/.github/workflows/build_upload_pypi_wheels.yml +++ b/.github/workflows/build_upload_pypi_wheels.yml @@ -1,9 +1,10 @@ name: Build and upload PyPI wheels and source dist on: - release: - types: [published] - workflow_dispatch: + # release: + # types: [published] + # workflow_dispatch: + pull_request: jobs: build-sdist: @@ -55,22 +56,23 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Ensure tags are fetched for versioning + - name: Download sdist uses: actions/download-artifact@v4 with: + name: python-source-distribution path: dist/ - - name: Rename dowloaded sdist + - name: Rename downloaded sdist shell: bash -l {0} run: | ls -R dist mv $(find dist/ -name 'euphonic*.tar.gz') dist/euphonic.tar.gz ls -R dist - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Ensure tags are fetched for versioning - - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 2e74809ca..c151155a4 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -5,8 +5,8 @@ on: - '**master**' - '**_run_ci**' - '**release**' - pull_request: - types: [opened, reopened, labeled, synchronize] + # pull_request: + # types: [opened, reopened, labeled, synchronize] workflow_dispatch: jobs: diff --git a/.github/workflows/test_windows_sdist.yml b/.github/workflows/test_windows_sdist.yml index e8ab2dfd7..5c127397f 100644 --- a/.github/workflows/test_windows_sdist.yml +++ b/.github/workflows/test_windows_sdist.yml @@ -1,7 +1,7 @@ name: test-sdist on: - pull_request: - types: [opened, reopened, labeled, synchronize] + # pull_request: + # types: [opened, reopened, labeled, synchronize] jobs: build: