Skip to content

Commit

Permalink
[CI] Fix R issues (#33)
Browse files Browse the repository at this point in the history
* upgraidng R version

* invalidate cache

* try another way

* up

* back to previous installation method (with cache) but with rc pak version

* move to 4.2.3

* up to 4.2.3 again

* try to add matrix to the list

* remove force uncompile

* install only relsurv

* try R 4.4

* move to stbale pak

* up version everywhere

* forbid installation of uncompiled packages.

* move compile and instlal packages around

* rm r comile
  • Loading branch information
lrnv authored Apr 30, 2024
1 parent 744b4e7 commit df8b890
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
env:
R_HOME: "/opt/R/4.4.0/lib/R"
LD_LIBRARY_PATH: /opt/R/4.4.0/lib/R/lib
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand All @@ -33,26 +36,19 @@ jobs:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.1'
r-version: '4.4.0'
- name: Install R packages survival & relsurv
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::survival
any::relsurv
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
env:
R_HOME: "/opt/R/4.2.1/lib/R"
LD_LIBRARY_PATH: /opt/R/4.2.1/lib/R/lib
- uses: julia-actions/julia-runtest@v1
env:
R_HOME: "/opt/R/4.2.1/lib/R"
LD_LIBRARY_PATH: /opt/R/4.2.1/lib/R/lib
- uses: julia-actions/julia-processcoverage@v1
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
Expand All @@ -70,12 +66,11 @@ jobs:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.1'
r-version: '4.4.0'
- name: Install R packages survival & relsurv
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::survival
any::relsurv
- uses: julia-actions/setup-julia@v2
with:
Expand All @@ -88,13 +83,8 @@ jobs:
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- uses: julia-actions/julia-buildpkg@v1
env:
R_HOME: "/opt/R/4.2.1/lib/R"
LD_LIBRARY_PATH: /opt/R/4.2.1/lib/R/lib
- uses: julia-actions/julia-docdeploy@v1
env:
R_HOME: "/opt/R/4.2.1/lib/R"
LD_LIBRARY_PATH: /opt/R/4.2.1/lib/R/lib
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
- name: Run doctests
Expand Down

0 comments on commit df8b890

Please sign in to comment.