Skip to content

Commit

Permalink
Fix CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
antibagr committed Nov 16, 2023
1 parent eca7565 commit 8dc709b
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 64 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry
Expand All @@ -23,10 +23,10 @@ jobs:
make tests-units
- name: Coverage Badge
uses: tj-actions/coverage-badge-py@v2.0.3
uses: tj-actions/coverage-badge-py@v2

- name: Verify Changed files
uses: tj-actions/verify-changed-files@v16.1.1
uses: tj-actions/verify-changed-files@v16
id: verify-changed-files
with:
files: coverage.svg
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ compose-down: ## Stop the development Django server with docker-compose

tests-units: ## Run unit tests
poetry run coverage run -m pytest -s ./tests/units
poetry run coverage report --precision=2 --fail-under=75
poetry run coverage report --precision=2 -m
.PHONY: tests-units

tests-integrations: ## Run integration tests
Expand Down
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def main() -> None:
print("Let the games begin!")
print("Let the games begin!") # noqa: T201


if __name__ == "__main__":
Expand Down
90 changes: 35 additions & 55 deletions poetry.lock

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

9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
[tool.poetry]
name = "TEMPLATE_NAME"
name = "app"
version = "0.0.1"
description = "TEMPLATE_DESCRIPTION"
authors = ["TEMPLATE_AUTHOR <TEMPLATE_AUTHOR_EMAIL>"]
maintainers = ["TEMPLATE_AUTHOR <TEMPLATE_AUTHOR_EMAIL>"]

[tool.poetry.dependencies]
python = "3.10.11"
python = "3.11.4"

[tool.poetry.group.dev.dependencies]
black = "23.11.0"
isort = "5.12.0"
flake8 = "6.1.0"
mypy = "1.7.0"
bandit = {extras = ["toml"], version = "1.7.5"}
pytest-cov = {extras = ["toml"], version = "^4.1.0"}
coverage = {extras = ["toml"], version = "^7.3.2"}
pytest-asyncio = "0.21.1"
flake8-comments = "0.1.2"
flake8-print = "5.0.0"
coverage = "7.3.2"

[tool.black]
line-length = 100
Expand Down

0 comments on commit 8dc709b

Please sign in to comment.