Repository navigation
77 lines (70 loc) · 2.16 KB
/
Copy pathtest_release.yml
File metadata and controls
77 lines (70 loc) · 2.16 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Test Release
on:
workflow_dispatch:
inputs:
version:
description: Test Version
default: ""
required: true
jobs:
TestWinRelease:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [windows-2022]
steps:
# install dependencies
- name: Clone Repository
uses: actions/checkout@v2
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1.3.1
- name: Install Python Package
run: python -m pip install brainflow==$env:VERSION
env:
VERSION: ${{ github.event.inputs.version }}
# run tests, single test per language is ok here
- name: EEG Metrics Python Test
run: python %GITHUB_WORKSPACE%\python_package\examples\tests\eeg_metrics.py --board-id -1
shell: cmd
- name: Run Julia Tests
run: |
cd %GITHUB_WORKSPACE%\julia_package\brainflow
julia --project=. -e "import Pkg; Pkg.test()"
shell: cmd
TestUnixRelease:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [ubuntu-20.04, macos-13]
steps:
# install dependencies
- name: Clone Repository
uses: actions/checkout@v2
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1.3.1
- name: Install Python Dependencies
if: (matrix.os == 'ubuntu-20.04')
run: |
sudo -H apt-get update -y
sudo -H apt-get install -y python3-setuptools python3-pygments
env:
DEBIAN_FRONTEND: noninteractive
- name: Install Python Package
run: sudo -H python3 -m pip install brainflow==${VERSION}
env:
VERSION: ${{ github.event.inputs.version }}
# run tests, single test per language is ok here
- name: EEG Metrics Python
run: sudo -H python3 $GITHUB_WORKSPACE/python_package/examples/tests/eeg_metrics.py --board-id -1
- name: Run All Julia Tests
run: |
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/installed/lib:$LD_LIBRARY_PATH
julia --project=$GITHUB_WORKSPACE/julia_package/brainflow -e "import Pkg; Pkg.test()"