Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ulthran opened this issue Feb 4, 2022 · 4 comments

Comments

@Ulthran
Copy link

Ulthran commented Feb 4, 2022

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'
@riasc
Copy link

riasc commented Jun 9, 2023

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

@DavideBrex
Copy link

I have the same problem

@pushpinder-bu
Copy link

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

@riasc
Copy link

riasc commented Sep 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants