Skip to content

Commit

Permalink
Removed old test.yml file and replaced with new yml file to test pipe…
Browse files Browse the repository at this point in the history
…line only
  • Loading branch information
dhatribadri committed Nov 6, 2024
1 parent f6cd79d commit 29acb9e
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/test_pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Test QCD Pipeline
run-name: ${{ github.actor }} is testing snakemake workflow 🚀
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
Test-QCD-Pipeline:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- name: Checkout repository
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."

- name: List files in the repository
run: |
ls
- name: Get working directory
run: |
pwd
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest snakemake
- name: Install Singularity
run: |
sudo apt-get update
sudo apt-get install -y singularity
- name: Snakemake workflow
uses: snakemake/snakemake-github-action@v1
with:
directory: '.'
snakefile: 'QCD.smk'
args: '--cores 4 --use-conda --use-singularity --use-envmodules --conda-cleanup-pkgs cache -j 999 --conda-frontend conda --configfile config/config.yaml --latency-wait 1000'
- run: echo "🍏 This job's status is ${{ job.status }}."

#- name: Run Snakemake tests
# run: |
# pytest tests/test_pipeline.py

0 comments on commit 29acb9e

Please sign in to comment.