diff --git a/.github/workflows/aind-behavior-services-cicd.yml b/.github/workflows/aind-behavior-services-cicd.yml index 88d1e093..274f2234 100644 --- a/.github/workflows/aind-behavior-services-cicd.yml +++ b/.github/workflows/aind-behavior-services-cicd.yml @@ -21,7 +21,7 @@ on: - dev* - release* release: - types: [published] + types: [ published ] jobs: # ╔──────────────────────────╗ @@ -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 @@ -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 @@ -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: @@ -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 @@ -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: @@ -237,7 +237,7 @@ 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' && @@ -245,12 +245,13 @@ jobs: !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 @@ -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