forked from genomic-medicine-sweden/pgx
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 942 Bytes
/
lint.yaml
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
36
37
name: Lint
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master and develop branch
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
lint:
name: Lint workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Add conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Install requirements.txt
run: |
pip install -r requirements.txt
- name: Linting
working-directory: .tests/integration
run: |
snakemake --lint -n -s ../../workflow/Snakefile --configfile config/config.yaml