Restructure as Python package with Docker/CI support #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Snakemake Validation | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment.yml | |
| cache-environment: true | |
| - name: Install package | |
| run: pip install -e . | |
| shell: micromamba-shell {0} | |
| - name: Validate Snakefile syntax | |
| run: | | |
| cd workflows | |
| # Use Python syntax check since --lint returns non-zero for style warnings | |
| python -m py_compile Snakefile.example || exit 1 | |
| # Run lint but don't fail on warnings (informational only) | |
| snakemake -s Snakefile.example --lint || true | |
| shell: micromamba-shell {0} |