-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 895 Bytes
/
testing.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
name: Testing
on:
push:
branches:
- develop
- main
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install Dependencies
run: |
pip install numpy Cython
pip install -r tests/requirements.txt
pip install pytest
- name: Install pymoode (DEBUG)
run: |
python setup.py install
- name: Install pymoode
run: |
pip install .
rm -rf pymoode
- name: Check Compilation
run: |
python -c "from pymoode.survival.rank_and_crowding.metrics import IS_COMPILED;print('Compiled Extensions: ', IS_COMPILED)"
- name: Run Tests
run: |
pytest -v --maxfail 1 --no-header -m "not long"