-
Notifications
You must be signed in to change notification settings - Fork 6
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
12 changed files
with
848 additions
and
123 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 |
---|---|---|
|
@@ -8,10 +8,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.12 | ||
- name: Install dependencies | ||
run: pip install tox | ||
- name: Validate formatting | ||
|
@@ -22,7 +22,7 @@ jobs: | |
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.9, 3.10, 3.11, 3.12] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -31,10 +31,10 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox tox-gh-actions | ||
- name: Test with tox | ||
run: tox | ||
python -m pip install --upgrade uv | ||
uv sync --group test | ||
- name: Test with pytest | ||
run: coverage run --source ecs_deplojo --parallel -m pytest | ||
- name: Prepare artifacts | ||
run: mkdir .coverage-data && mv .coverage.* .coverage-data/ | ||
- uses: actions/upload-artifact@master | ||
|
@@ -57,9 +57,12 @@ jobs: | |
python-version: 3.12 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
python -m pip install uv | ||
uv sync --group test | ||
- name: Prepare Coverage report | ||
run: tox -e coverage-report | ||
run: | | ||
coverage combine | ||
coverage xml | ||
coverage report | ||
- name: Upload to codecov | ||
uses: codecov/[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 |
---|---|---|
|
@@ -55,3 +55,4 @@ docs/_build/ | |
|
||
# PyBuilder | ||
target/ | ||
.python-version |
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
File renamed without changes.
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,6 +1,25 @@ | ||
[project] | ||
name="ecs-deplojo" | ||
dynamic = ["version"] | ||
authors = [ | ||
{name = "Lab Digital B.V.", email = "[email protected]"}, | ||
] | ||
description="Deployment tool for Amazon ECS" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = {text = "MIT"} | ||
dependencies = [ | ||
"boto3>=1.36.2", | ||
"click>=8.1.8", | ||
"pyaml>=25.1.0", | ||
"pytz>=2024.2", | ||
] | ||
|
||
[project.scripts] | ||
ecs-deplojo = "ecs_deplojo.cli:main" | ||
|
||
[build-system] | ||
requires = ["setuptools>=40.6.0", "wheel"] | ||
requires = ["setuptools", "wheel", "setuptools_scm[toml]"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.coverage.run] | ||
|
@@ -10,11 +29,10 @@ source = ["ecs_deplojo"] | |
[tool.coverage.paths] | ||
source = ["src", ".tox/*/site-packages"] | ||
|
||
[tool.isort] | ||
line_length = 88 | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
balanced_wrapping = true | ||
default_section = "THIRDPARTY" | ||
known_first_party = ["ecs_deplojo", "tests", "codegen"] | ||
use_parentheses = true | ||
[dependency-groups] | ||
test = [ | ||
"coverage[toml]>=7.6.10", | ||
"moto>=5.0.27", | ||
"pytest-cov>=6.0.0", | ||
"ruff>=0.9.2", | ||
] |
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
Oops, something went wrong.