dev: migrate from poetry to uv as project manager #3455
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: Python application | |
| on: [pull_request, workflow_dispatch] | |
| permissions: | |
| checks: write | |
| jobs: | |
| build_backend: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: [3.9, "3.10"] | |
| env: | |
| FORCE_COLOR: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Remove cached duckdb extensions | |
| run: rm -rf ~/.duckdb | |
| - uses: fjwillemsen/setup-nox2@v3.0.0 | |
| - run: python -m pip install github-action-utils uv -U | |
| - name: List nox envs | |
| run: nox -l | |
| - run: nox --pythons '${{ matrix.python }}' | |
| - run: uv build | |
| - name: Check that the lockfile is consistent with pyproject.toml | |
| run: uv lock --check | |
| - name: Publish Unit Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| junit_files: results.xml | |
| comment_mode: off | |
| check_name: "Test Results - ${{ join(matrix.*, ', ') }}" | |
| - uses: codecov/codecov-action@v5.4.0 | |
| env: | |
| PYTHON: ${{matrix.python}} | |
| BLEEDING_EDGE: ${{matrix.bleeding_edge}} | |
| with: | |
| files: ./coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| env_vars: PYTHON # ,BLEEDING_EDGE # set from matrix | |
| fail_ci_if_error: true | |
| verbose: true |