diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6456a5..5796310 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -138,6 +138,15 @@ jobs: working-directory: src/${{ matrix.package }} run: uv run --frozen pyright + - name: Run tests + working-directory: src/${{ matrix.package }} + run: | + if [ -d "tests" ] || [ -d "test" ]; then + uv run pytest + else + echo "No tests directory, skipping" + fi + - name: Build package working-directory: src/${{ matrix.package }} run: uv build @@ -189,6 +198,10 @@ jobs: fi echo "Version $VERSION is new, proceeding with publish" + - name: Run tests + working-directory: src/${{ matrix.package }} + run: npm test --if-present + - name: Build package working-directory: src/${{ matrix.package }} run: npm run build