Skip to content

Commit

Permalink
Merge branch 'main' into bump-black-precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin5605 authored Oct 4, 2023
2 parents a779bf8 + d94d532 commit f0eb35b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
File renamed without changes.
1 change: 1 addition & 0 deletions docker-compose-tests.yaml → compose-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
mainframe:
build:
target: test
dockerfile: Containerfile
args:
GIT_SHA: testing
db:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yaml → compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ services:
mainframe:
build:
context: .
dockerfile: Containerfile

ports:
- "8000:8000"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ docs = [
[tool.pdm.scripts]
format = { shell = "black . && isort ." }
lint = { shell = "pyright; ruff ." }
test = { shell = "docker compose -f docker-compose.yaml -f docker-compose-tests.yaml up --build --exit-code-from mainframe" }
test = { shell = "docker compose -f compose.yaml -f compose-tests.yaml up --build --exit-code-from mainframe" }
coverage = { shell = "coverage run -m pytest tests -vv && coverage report && coverage xml" }
precommit = { shell = "pre-commit run --all-files" }
all = { composite = ["format", "lint", "test"] }
Expand Down

0 comments on commit f0eb35b

Please sign in to comment.