-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (49 loc) · 1.2 KB
/
testing_cli.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
---
name: Run tests CLI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test_cli:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.11']
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} with Python ${{ matrix.python-version }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
shell: bash {0}
run: python -c "import sys; print(sys.version)"
- name: Install bids examples
run: git clone https://github.com/bids-standard/bids-examples.git
- name: Install pybids-reports
shell: bash {0}
run: pip install .
- name: Info CLI
shell: bash {0}
run: |
pybids_reports --version
pybids_reports --help
- name: Run test for CLI
shell: bash {0}
run: |
bash tools/run_on_examples.sh