From d458967331f236e710f8569b6cdfb81487d369d7 Mon Sep 17 00:00:00 2001 From: Thiago Paiva <54081877+thiagohdaqw@users.noreply.github.com> Date: Mon, 3 May 2021 18:14:18 -0300 Subject: [PATCH] (#181) testes rodando pelo docker --- .github/workflows/main.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b97d6df6..c21802be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,23 +26,12 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 with: - python-version: "3.7" + python-version: 3.x - - name: Install pipenv - run: | - python -m pip install --upgrade pipenv wheel - - id: cache-pipenv - uses: actions/cache@v2 - with: - path: ~/.local/share/virtualenvs - key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} - - - name: Install dependencies - if: steps.cache-pipenv.outputs.cache-hit != 'true' - run: pipenv install --deploy --dev - - - name: Run tests - run: pipenv run coverage run --source=app -m unittest discover -s tests/ -v + - name: Create test environment + run: docker-compose up --build + - name: Run coverage tests + run: docker exec anunbis_backend bash -c "./tests.sh" - name: Install coveralls run: pip install coveralls