Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

ci: added ci step to validate pylume version

Matt Speck27a4dbadbea3
diff --git a/.github/workflows/publish-pylume.yml b/.github/workflows/publish-pylume.yml
index dddde233ad..c5bd4f6f4a 100644
--- a/.github/workflows/publish-pylume.yml
+++ b/.github/workflows/publish-pylume.yml
@@ -54,6 +54,21 @@ jobs:
echo "VERSION=$VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
+ validate-version:
+ runs-on: macos-latest
+ needs: determine-version
+ steps:
+ - uses: actions/checkout@v4
+ - name: Validate version
+ id: validate-version
+ run: |
+ CODE_VERSION=$(grep '__version__' libs/pylume/pylume/__init__.py | cut -d'"' -f2)
+ if [ "${{ needs.determine-version.outputs.version }}" != "$CODE_VERSION" ]; then
+ echo "Version mismatch: expected $CODE_VERSION, got ${{ needs.determine-version.outputs.version }}"
+ exit 1
+ fi
+ echo "Version validated: $CODE_VERSION"
+
publish:
needs: determine-version
uses: ./.github/workflows/reusable-publish.yml