Skip to content

remove alias

remove alias #20

# Workflow derived from https://github.com/r-lib/actions
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: test-coverage
jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
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
needs: coverage
- name: Generate coverage
run: |
cov <- covr::package_coverage(
install_path = file.path(
normalizePath(
Sys.getenv("RUNNER_TEMP"),
winslash = "/"
),
"package"
)
)
print(cov)
covr::to_cobertura(
cov,
filename = "coverage.xml"
)
shell: Rscript {0}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
slug: dataobservatory-eu/fscontext
- name: Show testthat output
if: always()
run: |
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package