Skip to content

Commit

Permalink
Merge pull request #17 from RMI-PACTA/chore/prepare-for-dev-release
Browse files Browse the repository at this point in the history
Prepare for initial (dev) release
  • Loading branch information
AlexAxthelm authored Feb 5, 2024
2 parents 1b904ea + 4df560b commit fa345d1
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 36 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/R-test-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
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@v3

- 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: Test coverage
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
shell: Rscript {0}

- 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@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
21 changes: 21 additions & 0 deletions .github/workflows/R.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# This example file will enable R language checks on push or PR to the main
# branch.
#
# Note the @main in `uses:` on the last line. This will call the latest version
# of the workflow from the `main` brnach in the RMI-PACTA/actions repo. You can
# also specify a tag from that repo, or a commit SHA to pin action versions.
on:
push:
branches:
- main
pull_request:
branches:
- main

name: R

jobs:
R-package:
name: R Package Checks
uses: RMI-PACTA/actions/.github/workflows/R.yml@main
32 changes: 0 additions & 32 deletions .github/workflows/lint-package.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: workflow.portfolio.parsing
Title: Reads, cleans, and reexports portfolios for PACTA
Version: 0.0.0.9000
Version: 0.1.0.9000
Authors@R:
c(
person(
Expand Down
2 changes: 1 addition & 1 deletion R/process_directory.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ process_directory <- function(
writeLines(summaries_json, metadata_path)
logger::log_debug("Metadata JSON file written.")

return(all_summaries)
return(invisible(all_summaries))
}
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# workflow.portfolio.parsing

[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
<!-- badges: start -->
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![codecov](https://codecov.io/gh/RMI-PACTA/workflow.portfolio.parsing/graph/badge.svg?token=ewpls5qPVK)](https://codecov.io/gh/RMI-PACTA/workflow.portfolio.parsing)
<!-- badges: end -->

The docker image defined by this repo accepts a directory of portfolios (mounted to `/mnt/input/`, see [Inputs](#inputs)) and exports sanitized versions of those portfolios ready for further processing via PACTA (in `/mnt/output`, see [Outputs](#outputs),)

Expand Down

0 comments on commit fa345d1

Please sign in to comment.