-
Notifications
You must be signed in to change notification settings - Fork 143
47 lines (44 loc) · 1.37 KB
/
tests.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
name: "Tests"
on:
push:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
test:
name: Run template tests
strategy:
max-parallel: 4
fail-fast: false
matrix:
python-version: [ '3.8', '3.9' ]
platform: [ 'ubuntu-20.04', 'macos-latest', 'windows-latest' ]
runs-on: ${{ matrix.platform }}
timeout-minutes: 30
steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Extract branch name
run: echo running on branch ${GITHUB_REF##*/}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -VV
python -m pip install --upgrade pip setuptools
pip install -r requirements/requirements.txt
pip install -r requirements/requirements-test.txt
python -m pip install .
- name: Check numpy and scipy flags
run: |
python -c "import numpy as np; np.show_config()"
python -c "import scipy as sp; sp.show_config()"
- name: Test the input/output
run: |
python tests/test_calc_features.py
- name: Test the data loaders
run: |
python tests/test_dataset_loaders.py