Skip to content

Add functions to compute a developer's last activity #215

Add functions to compute a developer's last activity

Add functions to compute a developer's last activity #215

Workflow file for this run

## This file is part of coronet, which is free software: you
## can redistribute it and/or modify it under the terms of the GNU General
## Public License as published by the Free Software Foundation, version 2.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License along
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
##
## Copyright 2023-2024 by Maximilian Löffler <[email protected]>
## Copyright 2024 by Thomas Bock <[email protected]>
## All Rights Reserved.
name: Build Status
on:
pull_request:
branches: [ master, dev ]
types: [ opened, reopened, synchronize ]
push:
branches: [ master, dev ]
permissions:
contents: read
jobs:
build:
name: Build
# change to 'runs-on: self-hosted' to run on self-hosted runners (https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
r-version: ['4.0', '4.1', '4.2', '4.3', '4.4', 'latest']
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Update system
run: |
sudo apt-get update -y
sudo apt-get install --assume-yes libxml2
sudo apt-get install --assume-yes libxml2-dev
sudo apt-get install --assume-yes libglpk-dev
sudo apt-get install --assume-yes libfontconfig1-dev
sudo apt-get install --assume-yes libssl-dev
sudo apt-get install --assume-yes libcurl4-openssl-dev
sudo su -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/' >> /etc/apt/sources.list"
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install dependencies
run: Rscript install.R
- name: Run Tests
id: run_tests
run: Rscript tests.R
- name: Run Showcase
run: Rscript showcase.R
if: always()
- name: Generate Coverage Report
id: gen_coverage
run: Rscript coverage.R
if: matrix.r-version == 'latest' && steps.run_tests.outcome == 'success'
- name: Store coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: cobertura.xml
if: matrix.r-version == 'latest' && steps.gen_coverage.outcome == 'success'
upload-coverage-report:
name: Upload coverage report
needs: build
runs-on: ubuntu-latest
steps:
- name: Load coverage report
uses: actions/download-artifact@v4
with:
name: coverage-report
- name: Upload Report to CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: cobertura.xml
disable_search: true
fail_ci_if_error: true
verbose: true