Merge pull request #11 from akcorut/release-please--branches--main #153
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
name: Tests | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
Linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Lint workflow | |
uses: snakemake/snakemake-github-action@v1.24.0 | |
with: | |
directory: .test | |
snakefile: workflow/Snakefile | |
args: "--configfile .test/config_ecoli/config.yaml --lint" | |
Testing: | |
runs-on: ubuntu-latest | |
needs: | |
- Linting | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test workflow | |
uses: snakemake/snakemake-github-action@v1 | |
with: | |
directory: .test | |
snakefile: workflow/Snakefile | |
args: "--configfile .test/config_ecoli/config.yaml --use-conda --show-failed-logs -j 10 --conda-cleanup-pkgs cache --conda-frontend conda" | |
stagein: "conda config --set channel_priority flexible" |