feat: update all! #3
This file contains 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
# Run tests over snakefile workflow | |
--- | |
name: Tests | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [master, devel] | |
pull_request: | |
branches: [master, devel] | |
jobs: | |
Pre-Commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: 'true' | |
- name: Run pre-commit on all files | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files | |
Testing: | |
runs-on: ubuntu-latest | |
needs: | |
- Pre-Commit | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: 'true' | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: .snakemake/conda | |
key: snakemake-conda | |
- name: Download environments | |
uses: snakemake/[email protected] | |
with: | |
directory: . | |
snakefile: workflow/Snakefile | |
args: > | |
--use-conda | |
--conda-create-envs-only | |
--conda-frontend mamba | |
--cores 1 | |
- name: Test workflow | |
uses: snakemake/[email protected] | |
with: | |
directory: . | |
snakefile: workflow/Snakefile | |
args: > | |
--use-conda | |
--show-failed-logs | |
--cores 3 | |
--conda-cleanup-pkgs cache |