-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (53 loc) · 1.33 KB
/
main.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Tests
on:
push:
branches:
- main
- dev
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Formatting
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_SNAKEMAKE_SNAKEFMT: true
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies and lint
run: |
pip install snakefmt
pip install .
python -m snakefmt metaphor/workflow/Snakefile
run-workflow:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.11
# Deactivate this for now
# - name: Install dependencies
# run: |
# $CONDA/bin/conda env update --file environment.yaml --name base
- name: Test workflow
run: |
conda config --set channel_priority strict
pip install .
python -m metaphor.cli.cli test --dry-run