Skip to content

Commit

Permalink
ci: use CI to build cruise & run stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Sep 13, 2023
1 parent 48a0721 commit c0cee02
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install nextflow
uses: nf-core/setup-nextflow@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install .[dev,test]
- name: Test stub run
run: |
cruise run -profile ci_stub -stub
8 changes: 4 additions & 4 deletions conf/ci_stub.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
params {
config_profile_name = 'Test stubs'
config_profile_description = 'Minimal test dataset for continuous integration'
config_profile_name = 'Test single-end stubs'
config_profile_description = 'Minimal test dataset with blank references to run stubs with continuous integration'

outdir = 'results/test'
input = null
genome = null
input = 'assets/samplesheet_test.csv' // adapted from https://github.com/nf-core/test-datasets/blob/chipseq/samplesheet/v2.0/samplesheet_test.csv
genome = 'test'

max_cpus = 2 // for GitHub Actions https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
max_memory = '6.GB'
Expand Down

0 comments on commit c0cee02

Please sign in to comment.