Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
felix11h committed Feb 5, 2025
1 parent b1d07fd commit 7908c41
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
# ToDo: Re-enable cache when https://github.com/actions/setup-python/issues/361 is fixed
poetry_cache_enabled: 'false'

- run: poetry run python action.py
- run: poetry run action_beanstalk_deploy_runner
shell: bash
working-directory: ${{ github.action_path }}
env:
Expand Down
Empty file.
3 changes: 1 addition & 2 deletions action.py → action_beanstalk_deploy/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,11 @@ def main():
application_version.deploy_to_environment(environment)


if __name__ == "__main__":
def run():
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s %(levelname)s %(message)s",
datefmt="%Y-%m-%dT%H:%M:%S%z",
)
logger = logging.getLogger(__file__)

main()
22 changes: 11 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ python = "~3.12"
boto3 = "*"
dataclasses-json = "*"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "*"
pytest-cov = "*"

ruff = "*"

[tool.poetry.scripts]
action_beanstalk_deploy_runner = 'action_beanstalk_deploy.action:run'

[tool.coverage.run]
branch = true
source = ["."]
Expand Down
2 changes: 1 addition & 1 deletion test_action.py → tests/test_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from unittest import TestCase
from unittest.mock import patch

import action
from action_beanstalk_deploy import action

MOCK_CONFIG = action.Config(
application_name="demo-app",
Expand Down

0 comments on commit 7908c41

Please sign in to comment.