readme changes: add note about git flow to readme and contrib vign; o… #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
on: | |
push: | |
branches: [main] | |
name: test-coverage | |
jobs: | |
test-coverage: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
MINIO_USER: ${{ secrets.MINIO_USER }} | |
MINIO_PWD: ${{ secrets.MINIO_PWD }} | |
MINIO_ENDPOINT: ${{ secrets.MINIO_ENDPOINT }} | |
CODECOV_TOKEN: ${{ secrets.CODECOV_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: Start Minio | |
run: | | |
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20240315010719.0.0_amd64.deb -O minio.deb | |
sudo dpkg -i minio.deb | |
mkdir ~/minio | |
minio server ~/minio --console-address :9001 & | |
- name: Start Localstack | |
if: runner.os == 'Linux' | |
uses: LocalStack/setup-localstack@main | |
with: | |
image-tag: 'latest' | |
install-awslocal: 'true' | |
- name: Test coverage | |
run: | | |
covr::codecov( | |
quiet = FALSE, | |
clean = FALSE, | |
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") | |
) | |
shell: Rscript {0} | |
env: | |
AWS_REGION: us-west-2 | |
AWS_ACCESS_KEY_ID: b | |
AWS_SECRET_ACCESS_KEY: c | |
- 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 |