From 3fa63402b755ae6ee13302b57ebed63614b1564a Mon Sep 17 00:00:00 2001 From: rikemorais Date: Tue, 3 Sep 2024 17:45:02 -0300 Subject: [PATCH] test: Ajusta Github Actions para Testes --- .github/workflows/pytest.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 54f5a114..26c0b45b 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -9,16 +9,16 @@ jobs: - name: Copiando os Arquivos do Repositório uses: actions/checkout@v3 - - name: Instalando o Python - uses: actions/setup-python@v5 - with: - python-version: '3.10' + - name: Instalando o Docker Compose + run: | + sudo apt-get update + sudo apt-get install -y docker-compose - - name: Instalando o Poetry - run: pipx install poetry - - - name: Instalando Dependências - run: poetry install + - name: Construindo e Subindo os Containers + run: docker-compose up -d --build - name: Executando os Testes - run: poetry run task test + run: docker-compose run tests + + - name: Derrubando os Containers + run: docker-compose down