fix: update Workflows wrapper to work more natively with Python objects #526
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ['3.12', '3.13'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| run: | | |
| pip install uv | |
| - name: Install project | |
| run: | | |
| uv pip install --system -e packages/runtime-sdk -e packages/cli | |
| uv pip install --system --group dev --project packages/cli | |
| - name: Run tests | |
| working-directory: packages/cli | |
| run: | | |
| pytest -v tests | |
| - name: Verify that pywrangler can be run globally | |
| run: | | |
| pywrangler --help |