Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions .github/workflows/aind-behavior-services-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
- dev*
- release*
release:
types: [published]
types: [ published ]

jobs:
# ╔──────────────────────────╗
Expand All @@ -37,13 +37,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.11, 3.12, 3.13]
os: [ ubuntu-latest, windows-latest ]
python-version: [ 3.11, 3.12, 3.13 ]
fail-fast: false
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true

Expand Down Expand Up @@ -82,17 +82,17 @@ jobs:
needs: tests
runs-on: ubuntu-latest
if: >
github.ref == 'refs/heads/main' &&
github.event_name == 'push' &&
github.event.head_commit.author.email != 'github-actions[bot]@users.noreply.github.com'
github.ref == 'refs/heads/main' && github.event_name == 'push' &&
github.event.head_commit.author.email !=
'github-actions[bot]@users.noreply.github.com'
name: Create GitHub pre-release
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: main

- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true

Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
echo "version=$version" >> $GITHUB_OUTPUT

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
is_prerelease: ${{ steps.check_prerelease.outputs.prerelease }}

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: main
Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:
fi

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -237,20 +237,21 @@ jobs:
publish-to-pypi:
runs-on: ubuntu-latest
name: Publish to PyPI
needs: [tests, prepare-public-release]
needs: [ tests, prepare-public-release ]
if: |
(github.event_name == 'workflow_dispatch') ||
(github.event_name == 'release' &&
github.event.action == 'published' &&
!github.event.release.prerelease &&
startsWith(github.ref, 'refs/tags/v'))
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event_name == 'workflow_dispatch' && 'main' || github.ref_name }}
ref: ${{ github.event_name == 'workflow_dispatch' && 'main' || github.ref_name
}}

- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true

Expand Down Expand Up @@ -293,10 +294,10 @@ jobs:
if: ${{ !github.event.release.prerelease }}
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true

Expand Down
Loading