Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion snakebids/project_template/copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bids_version:
when: false

python_version:
default: ">=3.8,<4.0"
default: ">=3.11,<4.0"
when: false

snakebids_version:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Lint and test workflow
on:
push:
workflow_dispatch:

jobs:
quality:
runs-on: ubuntu-latest

steps:
- name: Install non-python dependencies
run: |
sudo apt-get install -y graphviz-dev

- name: Setup Python environment
uses: khanlab/actions/.github/actions/action-setup_task-installPyProject@v0.3.2
with:
python-version: "3.11"

- name: isort
run: poetry run isort {{ app_full_name }}/*.py -c

- name: Black
run: poetry run black {{ app_full_name }} --check

- name: snakefmt
run: poetry run snakefmt {{ app_full_name }} --check

test:
runs-on: ubuntu-latest
needs: ["quality"]
defaults:
run:
shell: bash -l {0}


steps:
- name: checkout repository
uses: actions/checkout@v4

- name: Setup Miniforge and mamba
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Miniforge3
miniforge-version: latest
mamba-version: "*"
use-mamba: true
conda-solver: libmamba
auto-activate-base: true

- name: Install snakebids
run: |
mamba install snakebids -c bioconda -c conda-forge -y

- name: Test
run: |
./{{ app_full_name }}/run.py tests/data test_out participant -np
Loading
Loading