mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-04-07 07:58:48 -04:00
🚸 use GitHub token by default
This commit is contained in:
parent
b463f5b8ca
commit
3e8166ab86
4 changed files with 1 additions and 27 deletions
2
.github/workflows/test-windows.yml
vendored
2
.github/workflows/test-windows.yml
vendored
|
@ -23,7 +23,5 @@ jobs:
|
||||||
}
|
}
|
||||||
- name: Setup uv
|
- name: Setup uv
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
working-directory: __tests__\fixtures\uv-project
|
working-directory: __tests__\fixtures\uv-project
|
||||||
|
|
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
|
@ -30,8 +30,6 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install default version
|
- name: Install default version
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
working-directory: __tests__/fixtures/uv-project
|
working-directory: __tests__/fixtures/uv-project
|
||||||
test-specific-version:
|
test-specific-version:
|
||||||
|
@ -46,7 +44,6 @@ jobs:
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.uv-version }}
|
version: ${{ matrix.uv-version }}
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
working-directory: __tests__/fixtures/uv-project
|
working-directory: __tests__/fixtures/uv-project
|
||||||
test-checksum:
|
test-checksum:
|
||||||
|
@ -69,15 +66,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: "0.3.2"
|
version: "0.3.2"
|
||||||
checksum: ${{ matrix.checksum }}
|
checksum: ${{ matrix.checksum }}
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
test-without-github-token:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install default version
|
|
||||||
uses: ./
|
|
||||||
- run: uv sync
|
|
||||||
working-directory: __tests__/fixtures/uv-project
|
|
||||||
test-uvx:
|
test-uvx:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
13
README.md
13
README.md
|
@ -17,7 +17,6 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
|
||||||
- [Enable Caching](#enable-caching)
|
- [Enable Caching](#enable-caching)
|
||||||
- [Local cache path](#local-cache-path)
|
- [Local cache path](#local-cache-path)
|
||||||
- [Cache dependency glob](#cache-dependency-glob)
|
- [Cache dependency glob](#cache-dependency-glob)
|
||||||
- [API rate limit](#api-rate-limit)
|
|
||||||
- [How it works](#how-it-works)
|
- [How it works](#how-it-works)
|
||||||
- [FAQ](#faq)
|
- [FAQ](#faq)
|
||||||
|
|
||||||
|
@ -135,18 +134,6 @@ changes. The glob matches files relative to the repository root.
|
||||||
'**pyproject.toml'
|
'**pyproject.toml'
|
||||||
```
|
```
|
||||||
|
|
||||||
### API rate limit
|
|
||||||
|
|
||||||
To avoid hitting the `API rate limit exceeded` error, supply a GitHub token via the `github-token`
|
|
||||||
input.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- name: Install uv and supply a GitHub token
|
|
||||||
uses: astral-sh/setup-uv@v2
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
```
|
|
||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
|
||||||
This action downloads uv from the uv repo's official
|
This action downloads uv from the uv repo's official
|
||||||
|
|
|
@ -13,6 +13,7 @@ inputs:
|
||||||
"Used to increase the rate limit when retrieving versions and downloading
|
"Used to increase the rate limit when retrieving versions and downloading
|
||||||
uv."
|
uv."
|
||||||
required: false
|
required: false
|
||||||
|
default: ${{ github.token }}
|
||||||
enable-cache:
|
enable-cache:
|
||||||
description: "Enable caching of the uv cache"
|
description: "Enable caching of the uv cache"
|
||||||
default: "false"
|
default: "false"
|
||||||
|
|
Loading…
Add table
Reference in a new issue