Skip to content

Commit

Permalink
alterações na pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroeverton217 committed Jan 10, 2025
1 parent 4b00720 commit ed4bcef
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/pipeline-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main # Executa o workflow ao push na branch 'main'
- ajustar-workflow
pull_request:
branches:
- main # Executa o workflow ao abrir um PR na branch 'main'
Expand All @@ -31,18 +32,18 @@ jobs:
run: |
docker-compose -f API/docker-compose.yml up -d --build
- name: Run migrations
run: |
docker-compose -f API/docker-compose.yml exec web python manage.py migrate
- name: Run tests with coverage
run: |
docker-compose -f API/docker-compose.yml exec web coverage run --source='.' manage.py test
- name: Generate coverage report
run: |
docker-compose -f API/docker-compose.yml exec web coverage xml
# Gera o relatório em XML, necessário para o Codecov
#- name: Run migrations
# run: |
# docker-compose -f API/docker-compose.yml exec web python manage.py migrate

#- name: Run tests with coverage
# run: |
# docker-compose -f API/docker-compose.yml exec web coverage run --source='.' manage.py test

#- name: Generate coverage report
# run: |
# docker-compose -f API/docker-compose.yml exec web coverage xml
# # Gera o relatório em XML, necessário para o Codecov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit ed4bcef

Please sign in to comment.