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

adds github actions #197

Merged
merged 4 commits into from
Nov 9, 2021
Merged

adds github actions #197

merged 4 commits into from
Nov 9, 2021

Conversation

IndrajeetPatil
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2021

Codecov Report

Merging #197 (0eb7391) into develop (29f2739) will increase coverage by 0.07%.
The diff coverage is n/a.

❗ Current head 0eb7391 differs from pull request most recent head 25b2db1. Consider uploading reports for the commit 25b2db1 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #197      +/-   ##
===========================================
+ Coverage    47.62%   47.70%   +0.07%     
===========================================
  Files           55       55              
  Lines         2589     2589              
===========================================
+ Hits          1233     1235       +2     
+ Misses        1356     1354       -2     
Impacted Files Coverage Δ
R/plotconfiguration-background.R 70.49% <0.00%> (+3.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29f2739...25b2db1. Read the comment docs.

@Yuri05
Copy link
Member

Yuri05 commented Nov 9, 2021

@IndrajeetPatil @msevestre With the new code coverage GiHub action the usage of code coveage can be removed from AppVeyor.yml, right?

TLF-Library/appveyor.yml

Lines 54 to 60 in aea83b9

- Rscript -e "install.packages('covr', repos = 'http://cran.us.r-project.org')"
test_script:
- travis-tool.sh run_tests
on_success:
- Rscript -e "covr::codecov()"

@IndrajeetPatil
Copy link
Member Author

Yes, I think that should be okay.

The R CMD Checks are failing though because the vignettes can't be knitted properly.

# Use older ubuntu to maximise backward compatibility
- {os: ubuntu-18.04, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-18.04, r: 'release'}
- {os: ubuntu-18.04, r: 'oldrel-1'}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"release" is the latest released r-version (like 4.1.2 now), "devel" is the next development version (e.g. 4.1.3 or 4.2.0)... and what is "oldrel-1"? 4.1.1 or 4.0.x or 3.6.5?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devel is 4.2.0

Rest are these versions:

library(rversions)

r_oldrel()
#>     version                date        nickname
#> 122   4.0.5 2021-03-31 07:05:15 Shake and Throw

r_release()
#>     version                date    nickname
#> 125   4.1.2 2021-11-01 08:05:12 Bird Hippie

Created on 2021-11-09 by the reprex package (v2.0.1)

@IndrajeetPatil
Copy link
Member Author

I am gonna skip the R CMD Check GHA for now, and come back to it later. The code coverage, linting, and pkgdown (🤞 ) actions should work.

@IndrajeetPatil IndrajeetPatil merged commit 5a3293b into develop Nov 9, 2021
@IndrajeetPatil IndrajeetPatil deleted the add_gha branch November 9, 2021 20:10
@msevestre
Copy link
Member

Stupid question maybe: Why are we updating the way code coverage is performed? What is the benefit?

@msevestre
Copy link
Member

specificaly we are not using our special secret key for coveralls.

COVERALLS_TOKEN:
secure: QItC20vr6rKHkiDVvsE+kHFL4GTS3bcsPw5KcWe+qipEIj1+ncKngsCoCNelNdtg

@IndrajeetPatil
Copy link
Member Author

No added benefit, except now we get everything in one place:

GHA gives us : code coverage + website + lint detection + R CMD Check
Appveyor provides : code coverage + R CMD Check

specificaly we are not using our special secret key for coveralls

We don't need to do this. GHA uses codecov and uses secret GitHub PAT provided for our repo, so we don't need to set anything.

Are you set on using coveralls, or codecov is also fine? Both of them provide identical information.

@IndrajeetPatil
Copy link
Member Author

That said, I am not wedded to the idea. Given the complexities of dotnet wrappers, etc.

We can use:
GHA only for website,
AppVeyor for R CMD Check and code coverage

That's also fine by me.

@IndrajeetPatil
Copy link
Member Author

IndrajeetPatil commented Nov 9, 2021

Holy shit! pkgdown GHA works successfully!

So, from now on, the website will update itself after each commit!! 🥳

@msevestre Can you please change settings/pages to the following:

image

@msevestre
Copy link
Member

I was just wondering what was the benefit of migrating to this new GHA (I do not know the syntax so the 30 lines of yaml look a bit scary to me) where we had one line before.
At any rate, looks good to me. And codecov is enough. Let's update the appveyor.yml to remove the codecoverage stuff
We should so the same for our other repositories for consistency sake

@msevestre
Copy link
Member

done
Seems to be only in darkmode now? is it on purpose?

@msevestre
Copy link
Member

correction
http://www.open-systems-pharmacology.org/TLF-Library/
is in darkmode
buts
https://www.open-systems-pharmacology.org/TLF-Library/ is outdated

(see HTTP vs https)

@IndrajeetPatil
Copy link
Member Author

Strange. This is not a pkgdown website. Something is amiss.

What is the URL given by GitHub pages (settings/pages) after Your site is published at ....

@IndrajeetPatil
Copy link
Member Author

And, to be absolutely sure, we are using /(root) directory in gh-pages branch, right? Not /docs/?

image

@msevestre
Copy link
Member

@IndrajeetPatil You are now admin..... enjoy:)

@IndrajeetPatil
Copy link
Member Author

Thanks!

We just needed to enforce HTTPS protocal.

The website is all set now and can be seen here: https://www.open-systems-pharmacology.org/TLF-Library/

The look of the website can be changed using the parameters here:

template:
bootstrap: 5
bootswatch: cyborg
theme: arrow-dark

I am obseesed with dark mode, so that's why I have chosen. But feel free to change these later.

@msevestre
Copy link
Member

msevestre commented Nov 9, 2021

I don't mint dark mode but this is really "in your face" dark mode lol
I think for now we should keep all page the same. (e.g. white or whatever we have for other packages) and go from there.

Also is this me or the plots are broken?
image

@IndrajeetPatil
Copy link
Member Author

Okay, I have turned off the dark mode now.

I see the same output if I knit the vignette locally, so I don't think it has anything to do with pkgdown or GHA.
Those examples are broken in the vignette itself.

@Yuri05
Copy link
Member

Yuri05 commented Nov 10, 2021

@IndrajeetPatil Cool, well done!
And in case we have a voting on the dark mode: I'm against it :) Prefer the "normal" mode 100%

@IndrajeetPatil
Copy link
Member Author

"normal" 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants