Independent Auditing of AI Agents. Run by human or the agent itself, to answer the most crucial question in the AI Agent Economy. Is the agent doing what is supposed to do? With iFixAi you can have this answer in less than 120 seconds.
Python agent-evaluationaiai-alignmentai-evaluationai-governanceai-safetyclidiagnostic-tooleu-ai-acthallucination-detectioniso-42001llm-evaluationllm-securitynist-ai-rmfowasp-llmprompt-injectionpythonresponsible-airisk-assessmentrisk-management
ci: fail release when tag and pyproject version disagree (#72)
stefyi-4355003b4fd9f386
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 5aac46e..b1572e6 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -17,6 +17,17 @@ jobs:with:python-version: "3.12"+ - name: Verify tag matches package version+ run: |+ tag_version="${GITHUB_REF_NAME#v}"+ pyproject_version="$(python -c 'import tomllib,pathlib; print(tomllib.loads(pathlib.Path("pyproject.toml").read_text())["project"]["version"])')"+ if [ "$tag_version" != "$pyproject_version" ]; then+ echo "::error::Tag ${GITHUB_REF_NAME} does not match pyproject.toml version ${pyproject_version}."+ echo "::error::Bump pyproject.toml and re-tag; publishing would collide with an existing PyPI file."+ exit 1+ fi+ echo "Tag ${GITHUB_REF_NAME} matches pyproject.toml version ${pyproject_version}."+- name: Build sdist and wheelrun: |python -m pip install --upgrade build