Skip to content

Commit

Permalink
Create main.yaml for snakemake formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ncherric committed Jun 28, 2023
1 parent c6ebdf5 commit cff70fc
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Checkout submodules
uses: textbook/[email protected]
- name: Formatting
uses: github/[email protected]
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_SNAKEMAKE_SNAKEFMT: true

linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Checkout submodules
uses: textbook/[email protected]
- name: Linting
uses: snakemake/[email protected]
with:
directory: '.test'
snakefile: workflow/Snakefile
args: '--lint'

run-workflow:
runs-on: ubuntu-latest
needs:
- formatting
- linting
steps:
- uses: actions/checkout@v1
- name: Checkout submodules
uses: textbook/[email protected]

- name: snakemake
uses: snakemake/[email protected]
with:
directory: .test
snakefile: workflow/Snakefile
args: "--use-conda --show-failed-logs --cores 1 --conda-cleanup-pkgs cache"

0 comments on commit cff70fc

Please sign in to comment.