-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed old test.yml file and replaced with new yml file to test pipe…
…line only
- Loading branch information
1 parent
f6cd79d
commit 29acb9e
Showing
1 changed file
with
56 additions
and
0 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,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 |