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
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
tags:
- "v*"
workflow_dispatch:

permissions: read-all

Expand Down Expand Up @@ -44,6 +45,7 @@ jobs:
run: uv python install 3.11

- name: "Verify tag matches package version"
if: github.event_name == 'push'
run: |
TAG="${GITHUB_REF_NAME}"
VERSION="v$(uv run python -c 'import antares_cli; print(antares_cli.__version__)')"
Expand All @@ -55,6 +57,9 @@ jobs:
- name: "Install dependencies"
run: uv sync --frozen --group dev

- name: "Install read-only command dependencies"
run: sudo apt-get update && sudo apt-get install --yes ripgrep

- name: "Run tests"
run: uv run pytest -q -p no:cacheprovider

Expand Down Expand Up @@ -89,6 +94,8 @@ jobs:
name: "publish public release"
needs: build
if: >-
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v') &&
github.repository == 'cisco-foundation-ai/antares-cli' &&
github.event.repository.visibility == 'public'
runs-on: ubuntu-22.04
Expand Down