Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
workflow_dispatch:

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
packages: read
statuses: write

jobs:
format:
name: Format workflow
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- name: Format code base
uses: super-linter/super-linter@v8.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: main

VALIDATE_SNAKEMAKE_SNAKEFMT: true
VALIDATE_PYTHON_BLACK: true
VALIDATE_YAML_PRETTIER: true

- name: Set up R
uses: r-lib/actions/setup-r@v2

- name: Set up R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: styler

- name: Check R style
run: Rscript -e 'changed <- styler::style_dir(".", dry = "on"); if (any(changed$changed)) quit(status = 1)'

test:
name: Test example data
runs-on: ubuntu-latest
timeout-minutes: 45

steps:
- name: Checkout code
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Run workflow on example data
uses: snakemake/snakemake-github-action@v2
with:
directory: .
snakefile: workflow/Snakefile
snakemake-version: 8.25.3
args: >-
--cores all
--sdm conda
--conda-cleanup-pkgs cache
--show-failed-logs
show-disk-usage-on-error: true
47 changes: 0 additions & 47 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 2 additions & 0 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ report: os.path.join("report", "workflow.rst")

##### load and validate config and sample annotation sheets #####
configfile: os.path.join("config", "config.yaml")


validate(config, os.path.join("schemas", "config.schema.yaml"))


Expand Down