Skip to content

Commit

Permalink
Move coverage report preparation for docker-based CI back into entryp…
Browse files Browse the repository at this point in the history
…oint shell script
  • Loading branch information
miteshashar committed Jun 27, 2023
1 parent 04a7922 commit a5575d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pytest-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ jobs:
run: docker compose -f docker-compose.ci.yml run -u root --entrypoint "" --no-deps --quiet-pull main chown -R 1000:1000 coverage
- name: Test with pytest
run: docker compose -f docker-compose.ci.yml up --quiet-pull --no-attach db --no-attach redis --no-log-prefix --exit-code-from main
- name: Prepare coverage report
run: docker compose -f docker-compose.ci.yml run --entrypoint "" main coverage lcov -o coverage/funnel.lcov
- name: Upload coverage report to Coveralls
uses: coverallsapp/github-action@master
with:
Expand Down
3 changes: 2 additions & 1 deletion docker/entrypoints/ci.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

GITHUB_ACTIONS=true pytest \
pytest \
--allow-hosts=127.0.0.1,::1,$(hostname -i),$(getent ahosts $DB_HOST | awk '/STREAM/ { print $1}'),$(getent ahosts $REDIS_HOST | awk '/STREAM/ { print $1}') \
--gherkin-terminal-reporter -vv --showlocals --cov=funnel $@
coverage lcov -o coverage/funnel.lcov

0 comments on commit a5575d4

Please sign in to comment.