Skip to content

Commit

Permalink
More action fiddling; reorder checkout/download, set run conditions
Browse files Browse the repository at this point in the history
Tweaking the run conditions temporarily while troubleshooting this;
these should be reverted.
  • Loading branch information
ajjackson committed Dec 10, 2024
1 parent 9222639 commit 63bbfd7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build_upload_pypi_wheels.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_windows_sdist.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: test-sdist
on:
pull_request:
types: [opened, reopened, labeled, synchronize]
# pull_request:
# types: [opened, reopened, labeled, synchronize]

jobs:
build:
Expand Down

0 comments on commit 63bbfd7

Please sign in to comment.