-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 1 KB
/
test.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
name: '[unit test]'
on: [ push ]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test_path: ['siibra_jugex', 'http_wrapper']
include:
- test_path: siibra_jugex
pip_install: '.'
- test_path: http_wrapper
pip_install: '-r ./http_wrapper/requirements-server.txt'
pip_install_extra: 'requests .'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: "Install testing libraries"
run: pip install pytest
- name: "Install dependencies defined in matrix.pip_install"
if: ${{ matrix.pip_install }}
run: pip install ${{ matrix.pip_install }}
- name: "Install dependencies defined in matrix.pip_install_extra"
if: ${{ matrix.pip_install_extra }}
run: pip install ${{ matrix.pip_install_extra }}
- name: "Run tests at test/${{ matrix.test_path }}"
run: pytest test/${{ matrix.test_path }}