Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pixup1 committed Dec 1, 2024
1 parent 07b69b3 commit 6f56e3d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 92 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/r-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: R Checks

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
checks:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libharfbuzz-dev libfribidi-dev libfreetype6-dev pkg-config libcurl4-openssl-dev
- name: Setup R environment
uses: r-lib/actions/setup-r@v2
with:
r-version: 'latest'

- name: Install devtools and package dependencies
run: |
Rscript -e 'install.packages("devtools", dependencies = NA)'
Rscript -e 'install.packages("lintr", dependencies = NA)'
Rscript -e 'devtools::install_deps(dep = TRUE)'
- name: Check package and tests
run: |
Rscript -e 'devtools::check()'
- name: Check linting
run: |
Rscript -e "lintr::lint_package(); if (length(lintr::lint_package()) > 0) quit(status = 1)"
90 changes: 0 additions & 90 deletions .github/workflows/r-tests.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode/*
.directory
.directory
*.Rcheck
2 changes: 1 addition & 1 deletion R/main.R
Original file line number Diff line number Diff line change
@@ -1 +1 @@
print("Bonjour INSA !")
print("Bonjour INSA !")

0 comments on commit 6f56e3d

Please sign in to comment.