generated from snakemake-workflows/snakemake-workflow-template
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 1.06 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: Lint and test workflow
on:
push:
branches: ['*', '!push-action/*']
pull_request:
branches: ['*', '!push-action/*']
jobs:
quality:
name: Lint code
if: github.event.pull_request.merged == false
runs-on: ubuntu-latest
steps:
- name: Setup Python environment
uses: khanlab/actions/.github/actions/[email protected]
with:
python-version: '3.11'
- name: snakemake lint
run: poetry run snakemake --lint --storage-gcs-project placeholder
- name: snakefmt
run: poetry run snakefmt --check workflow
test:
runs-on: ubuntu-latest
needs: [quality]
strategy:
matrix:
python-version: ['3.11']
steps:
- name: Setup Python environments
uses: khanlab/actions/.github/actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
install-library: true
- name: Integration dry-run test
run: poetry run snakemake -np --storage-gcs-project placeholder