-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
--- | ||
|
||
name: Setup - Install poetry, python, and dependencies | ||
name: Setup - Install uv, python, and dependencies | ||
description: This action contains some setup steps that are common to several workflows | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
poetry self add poetry-exec-plugin | ||
shell: bash | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v2 | ||
with: | ||
enable-cache: true | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
# attempt to restore dependencies from cache (if successful, the following `poetry install` will be a no-op) | ||
cache: poetry | ||
python-version-file: "pyproject.toml" | ||
- name: Install Python dependencies | ||
run: poetry install | ||
run: uv sync --all-extras --dev | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "your-pkg" | ||
version = "0.1.0" | ||
description = "Add a description here" | ||
authors = ["Johannes Nussbaum <[email protected]>"] | ||
authors = [{name = "Johannes Nussbaum", email = "[email protected]"}] | ||
readme = "README.md" | ||
requires-python = ">=3.12" | ||
dependencies = [ | ||
"loguru>=0.7.2", | ||
] | ||
|
||
|
||
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
loguru = "^0.7.2" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^8.2.1" | ||
mypy = "^1.10.0" | ||
ruff = "^0.4.5" | ||
pre-commit = "^3.7.0" | ||
[tool.uv] | ||
dev-dependencies = [ | ||
"pytest>=8.2.1", | ||
"mypy>=1.11.2", | ||
"ruff>=0.6.9", | ||
"pre-commit>=3.8.0", | ||
] | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
|
||
[tool.pytest.ini_options] | ||
|