This repository has been archived by the owner on Feb 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto commit -> added subject task data
- Loading branch information
1 parent
f060f80
commit e4ee855
Showing
6 changed files
with
573 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Task1 QC | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
process_raw: | ||
runs-on: self-hosted | ||
steps: | ||
- name: checkout code and return recently uploaded file in /data | ||
uses: actions/checkout@v2 | ||
run: | | ||
git pull origin main | ||
#!/bin/bash | ||
data=$(ls -t /data/*.txt | head -n 1) | ||
- name: set up python | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: parse raw | ||
run: | | ||
// add bash to parse raw data filename, split by '_', and save as local variable | ||
#!/bin/bash | ||
filename=$(basename $data) | ||
IFS='_' read -r sub task version <<< "$filename" | ||
echo "sub=$sub" >> $GITHUB_ENV | ||
echo "task=$task" >> $GITHUB_ENV | ||
echo "version=$version" >> $GITHUB_ENV | ||
echo "Subject: $sub" | ||
echo "Task: $task" | ||
echo "Version: $version" | ||
- name: convert raw | ||
run: python code/ConvertBeh.py -submission $data -out data/$sub/processed | ||
|
||
run_qc: | ||
runs-on: self-hosted | ||
needs: process_raw | ||
steps: | ||
- name: run quality control | ||
run: python AFqC.py -s data/$sub/processed/${sub}*.csv -o data/$sub/ -sub $sub | tee data/$sub/qc.log | ||
|
||
push: | ||
runs-on: self-hosted | ||
needs: run_qc | ||
steps: | ||
- name: push results | ||
run: | | ||
git config user.email [email protected] | ||
git config user.name "Zak Gilliam" | ||
git remote set-url origin //insert PAT | ||
git add -A | ||
git commit -m "QC results for ${sub}" | ||
git push origin main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.