-
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
6 changed files
with
174 additions
and
251 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
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 |
---|---|---|
|
@@ -19,33 +19,24 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Setup poetry | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
cache: "poetry" | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
|
||
- name: Install python dependencies | ||
run: poetry install --with dev,test | ||
run: | | ||
uv venv | ||
uv sync | ||
- name: Run python linter | ||
run: poetry run ruff check render_templates | ||
run: uv run ruff check render_templates | ||
if: ${{ !cancelled() }} | ||
|
||
- name: Run python formatter | ||
run: poetry run ruff format --check render_templates | ||
run: uv run ruff format --check render_templates | ||
if: ${{ !cancelled() }} | ||
|
||
- name: Run tests and coverage | ||
run: poetry run pytest render_templates | ||
run: uv run pytest render_templates | ||
if: ${{ !cancelled() }} | ||
|
||
Linter: | ||
|
@@ -59,25 +50,16 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Setup poetry | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
cache: "poetry" | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
|
||
- name: Install python dependencies | ||
run: poetry install --without dev,test | ||
run: | | ||
uv venv | ||
uv pip install -r pyproject.toml | ||
- name: Create Dockerfile from template | ||
run: poetry run python3 render_templates/main.py --flavor ${{ matrix.flavor }} | ||
run: uv run python3 -m render_templates.main --flavor ${{ matrix.flavor }} | ||
|
||
- name: Run Hadolint | ||
uses: hadolint/[email protected] | ||
|
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ build-*/ | |
node_modules | ||
package*.json | ||
.venv/ | ||
__pycache__/ |
This file was deleted.
Oops, something went wrong.
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,24 +1,19 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "docker-immich" | ||
version = "0.1.1" | ||
description = "AIO image for Immich" | ||
authors = ["martabal <[email protected]>"] | ||
authors = [{name = "martabal",email = "[email protected]"}] | ||
readme = "README.md" | ||
packages = [{include = "render_templates"}] | ||
requires-python = ">=3.13" | ||
dependencies = [ | ||
"jinja2>=3.1.5", | ||
] | ||
|
||
[dependency-groups] | ||
dev = [ | ||
"ruff>=0.9.3", | ||
"pytest>=8.3.4" | ||
] | ||
|
||
[tool.ruff] | ||
cache-dir = "~/.cache/ruff" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
jinja2 = "^3.1.5" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ruff = "^0.9.2" | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^8.3.4" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
Oops, something went wrong.