Skip to content

Change logo image from PNG to SVG #34

Change logo image from PNG to SVG

Change logo image from PNG to SVG #34

name: test-coverage
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test-coverage:
runs-on: ubuntu-latest
name: coverage
timeout-minutes: 15 # reduzido de 30 — só testes mockados rodam
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CI: true # garante que skip_on_ci() funciona
NOT_CRAN: true
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, any::xml2
needs: coverage
- name: Test coverage (only fast/mocked tests)
run: |
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(
normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"),
"package"
),
# Excluir testes de integração real que precisam de rede
# skip_on_ci() já cuida disso, mas timeout de 5s por segurança
type = "tests"
)
covr::to_cobertura(cov)
shell: Rscript {0}
- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
files: ./cobertura.xml
verbose: true