https://github.com/yezz123/setup-uv
Set up your GitHub Actions workflow with a specific version of uv
https://github.com/yezz123/setup-uv
astral dependencies pip ruff uv
Last synced: 9 months ago
JSON representation
Set up your GitHub Actions workflow with a specific version of uv
- Host: GitHub
- URL: https://github.com/yezz123/setup-uv
- Owner: yezz123
- License: mit
- Created: 2024-02-16T22:45:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-11T00:02:01.000Z (11 months ago)
- Last Synced: 2025-03-25T04:28:53.469Z (10 months ago)
- Topics: astral, dependencies, pip, ruff, uv
- Language: TypeScript
- Homepage: https://github.com/astral-sh/uv
- Size: 1.69 MB
- Stars: 43
- Watchers: 2
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-uv
[](https://github.com/yezz123/setup-uv/actions?query=workflow%3Adefault)
This action sets up a [uv](https://github.com/astral-sh/uv) for use in actions by installing a version of UV and adding to PATH. The action will fail if no matching versions are found.
This action supports versions of:
- Python `>=3.8`
- uv `>=0.1.2`
## Usage
### Install latest available version of UV
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: yezz123/setup-uv@v4
- run: uv --version
```
### Exact version of UV to install, using SemVer's version syntax
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: yezz123/setup-uv@v4
with:
uv-version: "0.1.12"
- run: uv --version
```
### Create and activate a virtual environment using uv
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: yezz123/setup-uv@v4
with:
uv-venv: "your_venv_name"
- run: uv pip install black # this command will run in the uv environment
```
## Contributing
### Create issues
You can
create
a new issue in the GitHub repository, for example to:
- Ask a **question** or ask about a **problem**.
- Suggest a new **feature**.
**Note**: if you create an issue, then I'm going to ask you to also help others.
😉
### Create a Pull Request
You can **contribute** to the source code with Pull Requests, for
example:
- To fix a typo you found on the documentation.
- To propose new documentation sections.
- To fix an existing issue/bug.
- To add a new feature.
## License 📄
This project is licensed under the terms of the MIT License.