Skip to content

Commit

Permalink
Merge pull request #298 from deeppavlov/revert-296-feat/github-action…
Browse files Browse the repository at this point in the history
…s-stage-tests

Revert "Add workflow for stage tests"
  • Loading branch information
RafilGalimzyanov authored Apr 27, 2024
2 parents bc94cf4 + a462d97 commit 58f2938
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 49 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/stage-tests.yml

This file was deleted.

12 changes: 1 addition & 11 deletions compose/stage/docker-compose.stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
# depends_on:
# - redis
tests:
env_file: [ ../.envs/.env.test ]
restart: on-failure
build:
context: ../..
dockerfile: ./tests/backend/Dockerfile
volumes:
- ../../apiconfig:/src/apiconfig
- ../../database:/src/database
- ../../git_storage:/src/git_storage
- ../../tests:/src/tests

#
# flower:
# env_file: [ ../.envs/.env.dev.local ]
Expand Down
7 changes: 2 additions & 5 deletions tests/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ WORKDIR src/
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONBUFFERED 1

RUN apt-get update && apt-get install -y --no-install-recommends git

COPY tests/requirements.txt .
COPY tests/backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY services/ services/
COPY tests/backend /src/tests/backend

CMD ["pytest", "tests/backend", "-sv", "-m", "regression"]
CMD ["pytest", "tests/backend", "-v"]
Binary file modified tests/requirements.txt
Binary file not shown.

0 comments on commit 58f2938

Please sign in to comment.