diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index ed13ba09..97a0cb9b 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -2,25 +2,27 @@ name: Upload Python Package on: release: - types: [created] + types: [published,created] # Triggers the workflow when a release is published jobs: - deploy: + build-and-publish: runs-on: ubuntu-latest + environment: + name: release # Must match the environment name configured on PyPI (if used) + permissions: + contents: read + id-token: write # Mandatory for OIDC trusted publishing + steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: "3.x" - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py clean sdist bdist_wheel - twine upload dist/* + run: python -m pip install --upgrade pip build + - name: Build package + run: python -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + # No username or password needed; OIDC handles authentication diff --git a/README.md b/README.md index 2ce3b667..b01b23fa 100644 --- a/README.md +++ b/README.md @@ -51,18 +51,11 @@ Or check the wiki for more alternatives. ``` 2. **Start CulebraTester2 on your device:** - ```bash - # Install the APK - adb install -r culebratester2.apk - # Start the service - adb shell am instrument -w com.dtmilano.android.culebratester2/.CulebraTester2Instrumentation + Check the details at [How to run CulebraTester2 ?](https://github.com/dtmilano/CulebraTester2-public?tab=readme-ov-file#how-to-run-culebratester2-) - # Forward the port - adb forward tcp:9987 tcp:9987 - ``` -3. **Configure your AI assistant:** +4. **Configure your AI assistant:** Add to `.kiro/settings/mcp.json` or `~/.kiro/settings/mcp.json`: ```json @@ -78,12 +71,12 @@ Or check the wiki for more alternatives. } ``` -4. **Start testing with natural language:** - - "Get the device screen size" - - "Launch the Calculator app" - - "Find the button with text Submit and click it" - - "Take a screenshot" - - "Swipe up to scroll" +5. **Start testing with natural language:** + - "_Get the device screen size_" + - "_Launch the Calculator app_" + - "_Find the button with text Submit and click it_" + - "_Take a screenshot_" + - "_Swipe up to scroll_" ## MCP Tools Available