Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update codecov.yaml update dependencies installed #96

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: R Package CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
codecov:
runs-on: ubuntu-latest

steps:
Expand All @@ -31,17 +28,6 @@ jobs:
restore-keys: |
dependencies-${{ runner.os }}-

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudunits2-dev libgdal-dev


- name: Install dependencies
run: |
R -e 'install.packages("remotes")'
R -e 'remotes::install_deps()'

- name: Install dependencies for covr and testthat
run: R -e 'install.packages(c("covr", "testthat"), dependencies = TRUE)'

Expand All @@ -50,13 +36,8 @@ jobs:
echo "Current working directory: $(pwd)"
R -e 'library(covr); covr::package_coverage(coverage_file = "coverage.xml")'


- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
coverage_reports: ${{ github.workspace }}/coverage.xml

- name: Cleanup
run: |
R -e 'remove.packages("remotes")'
Loading