diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 373c1fd..20eaca0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,12 +19,14 @@ jobs: noxenvs: ${{ steps.noxenvs-matrix.outputs.noxenvs }} steps: - uses: actions/checkout@v4 - - name: Set up nox - uses: wntrblm/nox@2024.10.09 + - name: Set up uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true - id: noxenvs-matrix run: | echo >>$GITHUB_OUTPUT noxenvs=$( - nox --list-sessions --json | jq '[.[].session]' + uvx nox --list-sessions --json | jq '[.[].session]' ) ci: @@ -37,7 +39,7 @@ jobs: noxenv: ${{ fromJson(needs.list.outputs.noxenvs) }} posargs: [""] include: - - noxenv: tests-3.12 + - noxenv: tests-3.13 posargs: coverage github steps: @@ -63,12 +65,12 @@ jobs: allow-prereleases: true - name: Set up uv - uses: hynek/setup-cached-uv@v2 - - name: Set up nox - uses: wntrblm/nox@2024.10.09 + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true - name: Run nox - run: nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }} + run: uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }} packaging: needs: ci @@ -85,17 +87,13 @@ jobs: - uses: actions/checkout@v4 with: submodules: "recursive" - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.x" - name: Set up uv - uses: hynek/setup-cached-uv@v2 - - name: Install dependencies - run: uv pip install --system build + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true - - name: Create packages - run: python -m build . + - name: Build our distributions + run: uv run --frozen --with 'build[uv]' -m build --installer=uv - name: Publish to PyPI if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')