Skip to content

Commit

Permalink
(#181) testes rodando pelo docker
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagohdaqw committed May 3, 2021
1 parent fbd6a03 commit d458967
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d458967

Please sign in to comment.