diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d3ffe57..7212788 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,6 +17,8 @@ jobs: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v5 + with: + enable-cache: "true" - name: Run Ruff run: uv run ruff check . --output-format=github - name: Ruff format diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3bc0867..9ea9c96 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,8 +22,12 @@ jobs: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v5 + with: + enable-cache: "true" - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV - - run: uv build --prerelease=allow + # Allow prerelease if explicitly marked in pyproject.toml so we can prerelease in conjunction + # with engine updates. + - run: uv build --prerelease=explicit - uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: ./dist diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3cab171..2b36c0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,8 @@ jobs: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v5 + with: + enable-cache: "true" - name: Run tests run: | uv run -p ${{ matrix.python-version }} --prerelease=allow pytest @@ -35,8 +37,12 @@ jobs: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v5 + with: + enable-cache: "true" - name: Set up env - run: uv sync --prerelease=allow + # Allow prerelease if explicitly marked in pyproject.toml so we can prerelease in conjunction + # with engine updates. + run: uv sync --prerelease=explicit - name: Install package run: source .venv/bin/activate && uv pip install . - name: Check entry point