Skip to content

Estado atual antes das correções #6

Estado atual antes das correções

Estado atual antes das correções #6

Workflow file for this run

name: Testes do SpeedScan
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-mock pytest-html pytest-cov
- name: Install xvfb
run: sudo apt-get update && sudo apt-get install -y xvfb
- name: Run tests (excluding dashboard)
run: |
pytest tests/ -v -k "not TestDashboard" --cov=core --cov-report=xml --cov-report=html --html=report.html --self-contained-html
- name: Upload coverage to Codecov (opcional)
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report-${{ matrix.python-version }}
path: htmlcov/
- name: Upload test report
uses: actions/upload-artifact@v4
with:
name: test-report-${{ matrix.python-version }}
path: report.html