Skip to content

syntax fix workflow

syntax fix workflow #3

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", "GGIR"), 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
run: python code/main.py
- 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