mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-01-19 16:28:18 +08:00
49df72dfcf
This PR adjusts the action so that it is no longer necessary to
explicitly specify the GitHub token to circumvent the API rate limit.
To this end, it simply passes the repository's GitHub token (available
via `${{ github.token }}`) as a default for the `github_token` action
input.
This is similar to how this is handled in, e.g.,
https://github.com/peter-evans/create-pull-request; specifically
[here](5354f85616/action.yml (L4-L6)
).
28 lines
582 B
YAML
28 lines
582 B
YAML
name: "test-windows"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test-default-version:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Should not be on path
|
|
run: |
|
|
if (!(Get-Command -Name "uv" -ErrorAction SilentlyContinue)) {
|
|
exit 0
|
|
} else {
|
|
exit 1
|
|
}
|
|
- name: Setup uv
|
|
uses: ./
|
|
- run: uv sync
|
|
working-directory: __tests__\fixtures\uv-project
|