mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-12-15 16:10:39 +03:00
add ci tests in docker compose (#11)
This commit is contained in:
9
.github/workflows/poetry-test.yml
vendored
9
.github/workflows/poetry-test.yml
vendored
@@ -37,7 +37,6 @@ jobs:
|
||||
curl -sSL "https://install.python-poetry.org" | python -
|
||||
# Adding `poetry` to `$PATH`:
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
apt-get update && apt-get install --no-install-recommends -y ffmpeg
|
||||
|
||||
- name: Set up cache
|
||||
uses: actions/cache@v3
|
||||
@@ -64,14 +63,10 @@ jobs:
|
||||
#----------------------------------------------
|
||||
# run test suite
|
||||
#----------------------------------------------
|
||||
- name: Run tests
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
poetry run pytest bot_microservice/ -vv --exitfirst
|
||||
- name: Coverage report
|
||||
run: |
|
||||
poetry run coverage run -m pytest bot_microservice/
|
||||
poetry run coverage report
|
||||
cp bot_microservice/serrings/.env.ci.runtests bot_microservice/serrings/.env
|
||||
docker compose run bot poetry run bash -c "coverage run -m pytest -vv --exitfirst && poetry run coverage report"
|
||||
- name: Extended checks
|
||||
run: |
|
||||
poetry run poetry check
|
||||
|
||||
Reference in New Issue
Block a user