Skip to content

Commit 8ec7536

Browse files
authored
Switch to GitHub Actions (#12)
* Remove travis * Switch to GitHub Actions * Try an older ubuntu variant * Try with a newer version of R CMD check action * Try with a v2 build and include tinytex * Switch to the v2 line
1 parent 4b1c757 commit 8ec7536

File tree

5 files changed

+54
-13
lines changed

5 files changed

+54
-13
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
^\.travis\.yml$
66
^docs/
77
^codecov\.yml$
8+
^\.github$

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
21+
- {os: macOS-latest, r: 'release'}
22+
- {os: windows-latest, r: 'release'}
23+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
24+
- {os: ubuntu-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'oldrel-1'}
26+
27+
env:
28+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
29+
R_KEEP_PKG_SOURCE: yes
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
# Required for PDF build
34+
- uses: r-lib/actions/setup-tinytex@v2
35+
36+
- uses: r-lib/actions/setup-pandoc@v2
37+
38+
- uses: r-lib/actions/setup-r@v2
39+
with:
40+
r-version: ${{ matrix.config.r }}
41+
http-user-agent: ${{ matrix.config.http-user-agent }}
42+
use-public-rspm: true
43+
44+
- uses: r-lib/actions/setup-r-dependencies@v2
45+
with:
46+
extra-packages: any::rcmdcheck
47+
needs: check
48+
49+
- uses: r-lib/actions/check-r-package@v2

.travis.yml

-8
This file was deleted.

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# assignr
22

3-
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
4-
[![Build Status](https://travis-ci.org/coatless/assignr.svg)](https://travis-ci.org/coatless/assignr)
3+
<!-- badges: start -->
4+
[![R build status](https://github.com/r-assist/assignr/workflows/R-CMD-check/badge.svg)](https://github.com/r-assist/assignr/actions)
55
[![Package-License](http://img.shields.io/badge/license-GPL%20(%3E=2)-brightgreen.svg?style=flat)](http://www.gnu.org/licenses/gpl-2.0.html)
6-
[![CRAN](http://www.r-pkg.org/badges/version/assignr)](https://cran.r-project.org/package=assignr)
7-
[![Downloads](http://cranlogs.r-pkg.org/badges/assignr?color=brightgreen)](http://www.r-pkg.org/pkg/assignr)
8-
[![Coverage Status](https://img.shields.io/codecov/c/github/coatless/assigner/master.svg)](https://codecov.io/github/coatless/assigner?branch=master)
6+
<!-- badges: end -->
97

108
Tools for creating homework assignments and solutions using [_RMarkdown_](http://rmarkdown.rstudio.com/).
119

0 commit comments

Comments
 (0)