🆒 Correção das falhas nos testes. #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- implementacao | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint | |
pip install selenium | |
pip install PyPDF2 | |
pip install pytest | |
- name: Run Tests and Coverage | |
run: | | |
pytest --cov=Testes --cov-report=xml | |
cc-test-reporter format-coverage --input-type coverage.py --output .coverage/codeclimate.json | |
cc-test-reporter upload-coverage | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.Test_Reporter }} | |
- name: Code Climate Quality Check | |
run: cc-test-reporter sum-coverage -p 1 | |
- name: Run Code Climate Checks | |
run: cc-test-reporter upload-coverage |