-
Notifications
You must be signed in to change notification settings - Fork 35
[ci] Move CI to GitHub Actions (fixes #215) #217
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2ad1781
add GitHub actions
jameslamb 3b2c744
empty commit
jameslamb 7e853b1
changes
jameslamb 09dedb8
better config
jameslamb 3a9a486
better R install
jameslamb 90741b6
R_LIBS
jameslamb 32fb19e
setup lib
jameslamb 5ab5702
curl for httr
jameslamb 4b754c1
OS_NAME
jameslamb 48892b8
correct version
jameslamb 5f9efd0
use an action for R
jameslamb 32679db
more stuff
jameslamb 8bec5ed
no R_LIBS
jameslamb 5912dad
pdflatex
jameslamb f1b52d6
paths matter
jameslamb 2bfe6ff
fix NOTE
jameslamb ea37ac0
covr
jameslamb 90ae639
trying Python package
jameslamb a73bd09
wheel
jameslamb 9be7b9c
more docs and versions
jameslamb ce4277d
remove travis.yml
jameslamb 0564dae
revert unnecessary change
jameslamb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
|
||
# failure is a natural part of life | ||
set -e | ||
|
||
# If language: r, | ||
# install these testing packages we need | ||
if [[ "$TASK" == "rpkg" ]]; | ||
then | ||
Rscript -e "install.packages(c('assertthat', 'covr', 'data.table', 'futile.logger', 'httr', 'jsonlite', 'knitr', 'lintr', 'purrr', 'rmarkdown', 'stringr', 'testthat', 'uuid'), repos = 'http://cran.rstudio.com')" | ||
cp test-data/* r-pkg/inst/testdata/ | ||
|
||
# `devscripts` is required for 'checkbashisms' (https://github.com/r-lib/actions/issues/111) | ||
sudo apt-get update | ||
sudo apt-get install \ | ||
--no-install-recommends \ | ||
-y \ | ||
--allow-downgrades \ | ||
libcurl4-openssl-dev \ | ||
curl \ | ||
devscripts \ | ||
texinfo \ | ||
texlive-latex-recommended \ | ||
texlive-fonts-recommended \ | ||
texlive-fonts-extra \ | ||
qpdf \ | ||
|| exit -1 | ||
|
||
Rscript -e "install.packages(c('assertthat', 'covr', 'data.table', 'futile.logger', 'httr', 'jsonlite', 'knitr', 'lintr', 'purrr', 'rmarkdown', 'stringr', 'testthat', 'uuid'), repos = 'https://cran.r-project.org')" | ||
cp test-data/* r-pkg/inst/testdata/ | ||
fi |
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.task }} (ES ${{ matrix.es_version }}) | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
#---# | ||
# R # | ||
#---# | ||
- task: rpkg | ||
es_version: 1.0.3 | ||
- task: rpkg | ||
es_version: 1.7.6 | ||
- task: rpkg | ||
es_version: 2.4.6 | ||
- task: rpkg | ||
es_version: 5.6.16 | ||
- task: rpkg | ||
es_version: 6.0.1 | ||
- task: rpkg | ||
es_version: 7.1.1 | ||
- task: rpkg | ||
es_version: 7.2.1 | ||
- task: rpkg | ||
es_version: 7.3.2 | ||
- task: rpkg | ||
es_version: 7.4.2 | ||
- task: rpkg | ||
es_version: 7.5.2 | ||
- task: rpkg | ||
es_version: 7.6.2 | ||
- task: rpkg | ||
es_version: 7.7.1 | ||
- task: rpkg | ||
es_version: 7.8.1 | ||
#--------# | ||
# python # | ||
#--------# | ||
- task: pypkg | ||
es_version: 1.0.3 | ||
- task: pypkg | ||
es_version: 1.7.6 | ||
- task: pypkg | ||
es_version: 2.4.6 | ||
- task: pypkg | ||
es_version: 5.6.16 | ||
- task: pypkg | ||
es_version: 6.0.1 | ||
- task: pypkg | ||
es_version: 7.1.1 | ||
- task: pypkg | ||
es_version: 7.2.1 | ||
- task: pypkg | ||
es_version: 7.3.2 | ||
- task: pypkg | ||
es_version: 7.4.2 | ||
- task: pypkg | ||
es_version: 7.5.2 | ||
- task: pypkg | ||
es_version: 7.6.2 | ||
- task: pypkg | ||
es_version: 7.7.1 | ||
- task: pypkg | ||
es_version: 7.8.1 | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v2.3.4 | ||
with: | ||
fetch-depth: 1 | ||
- name: set up R | ||
if: matrix.task == 'rpkg' | ||
uses: r-lib/actions/setup-r@v1 | ||
with: | ||
r-version: '4.0.3' | ||
- name: set up python | ||
if: matrix.task == 'pypkg' | ||
uses: conda-incubator/setup-miniconda@v1.7.0 | ||
with: | ||
python-version: 3.7 | ||
- name: run tests | ||
shell: bash | ||
run: | | ||
export CONDA_DIR=${HOME}/miniconda3 | ||
export ES_VERSION=${{ matrix.es_version }} | ||
export PATH=${CONDA_DIR}/bin:${HOME}/.local/bin:$PATH | ||
export TASK="${{ matrix.task }}" | ||
$GITHUB_WORKSPACE/.ci/setup.sh | ||
$GITHUB_WORKSPACE/.ci/install.sh | ||
$GITHUB_WORKSPACE/setup_local.sh ${{ matrix.es_version }} | ||
$GITHUB_WORKSPACE/.ci/test.sh | ||
$GITHUB_WORKSPACE/.ci/report_to_covr.sh | ||
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert | ||
all-successful: | ||
runs-on: ubuntu-latest | ||
needs: [test] | ||
steps: | ||
- name: Note that all tests succeeded | ||
run: echo "🎉" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, thank you