Skip to content

automated commit by vosslab linux #69

automated commit by vosslab linux

automated commit by vosslab linux #69

Workflow file for this run

name: run act workflow
on:
push:
branches: [ "main", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.0' # Specify the R version
- name: Install R packages
run: |
Rscript -e 'install.packages(c("ggplot2","plyr","optparse","tidyr","remotes"), repos="https://cloud.r-project.org", dependencies=TRUE)'
Rscript -e 'remotes::install_version("GGIR", version = "3.2.6", repos = "https://cloud.r-project.org")'
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f code/requirements.txt ]; then pip install -r code/requirements.txt; fi
- name: Run Python script
env:
RC_TOKEN: ${{ secrets.RC_TOKEN }}
run: |
python code/main.py 1 "$RC_TOKEN"
- name: Commit and push changes to main
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git checkout main
git add .
git commit -m "Automated changes from GitHub Actions"
git push origin main