snakemake-github-action icon indicating copy to clipboard operation
snakemake-github-action copied to clipboard

Workflow defines configfile config/config.yml but it is not present or accessible.

Open Ulthran opened this issue 3 years ago • 4 comments

How do I specify the path to my config file? I've tried moving it around but the GH action doesn't seem to pick it up from anywhere automatically.

.github/workflows/main.yaml

# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the master branch
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  snakemake:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Linting
        uses: snakemake/snakemake-github-action@v1
        with:
          directory: '.test'
          snakefile: 'workflow/Snakefile'
          args: '--lint'

      - name: Testing
        uses: snakemake/snakemake-github-action@v1
        with:
          directory: '.test'
          snakefile: 'workflow/Snakefile'
          args: '--cores 1 --use-conda --conda-cleanup-pkgs cache'
          stagein: '' # additional preliminary commands to run (can be multiline)

      - name: Create container file
        uses: snakemake/snakemake-github-action@v1
        with:
          snakefile: 'workflow/Snakefile'
          task: 'containerize'

Ulthran avatar Feb 04 '22 15:02 Ulthran

Hi, have you solved this? Run into the same issue

riasc avatar Jun 09 '23 16:06 riasc

I have the same problem

DavideBrex avatar Aug 23 '23 15:08 DavideBrex

I am running into the same issue. Anyone found a solution?

pushpinder-bu avatar Sep 07 '23 18:09 pushpinder-bu

I used the --configfile option to explicitly define the config file: args: '--lint --configfile .tests/integration/config_basic/config.yaml' works with this

riasc avatar Sep 09 '23 19:09 riasc