-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (58 loc) · 1.71 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
57
58
59
60
61
62
name: build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
create:
branches: [master]
tags: ['**']
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies using pip
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Display versions and environment information
run: |
echo $TZ
date
python --version
which python
- name: Install pd-parser
run: pip install --no-deps .
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install BIDS validator (stable)
run: |
npm install -g bids-validator
- name: Install pd-parser
run: pip install --no-deps .
- name: Run pytest
run: |
echo "bids-validator"; bids-validator --version
python -m pytest . --cov=pd_parser/tests/ --cov-report=xml --cov-config=setup.cfg --verbose --ignore mne-python
- name: Run style & documentation tests
if: "matrix.os == 'ubuntu-latest'"
run: make pep
- name: Upload coverage stats to codecov
if: "matrix.os == 'ubuntu-latest'"
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml