Skip to content
Snippets Groups Projects
Commit b16b2e28 authored by Reinhard Prix's avatar Reinhard Prix
Browse files

gitlab-ci: run all tests and black syntax check

- run against pip-installed lalsuite
- use python3 venv
parent 607a75d2
Branches
Tags
1 merge request!22Gitlab ci runner setup
test_app: stages:
- Test
- Static Analysis
variables:
VENV_DIR: $CI_PROJECT_DIR/../venv-pyFstat
INSTALLER_DIR: $CI_PROJECT_DIR/install-cw-software
pytest:
stage: Test
tags: [ pyFstat ]
before_script:
- python3 -m venv $VENV_DIR
- source ${VENV_DIR}/bin/activate
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install lalsuite
- pip install pytest
- export LAL_DATA_PATH=$HOME/ephemeris
- export LALPULSAR_DATADIR=$LAL_DATA_PATH
script: script:
- . /home/user1/lalsuite-install/etc/lalapps-user-env.sh - pip install -e $CI_PROJECT_DIR
- /home/user1/anaconda2/bin/python tests.py Writer # make sure to test *installed* version of pyFstat
- /home/user1/anaconda2/bin/python tests.py par - (cd .. && pytest $CI_PROJECT_DIR/tests.py --log-file=$CI_PROJECT_DIR/tests.log)
- /home/user1/anaconda2/bin/python tests.py BaseSearchClass
- /home/user1/anaconda2/bin/python tests.py ComputeFstat artifacts:
- /home/user1/anaconda2/bin/python tests.py SemiCoherentSearch paths:
- /home/user1/anaconda2/bin/python tests.py SemiCoherentGlitchSearch - ./*.log
- /home/user1/anaconda2/bin/python tests.py MCMCSearch name: testlogs
- /home/user1/anaconda2/bin/python tests.py GridSearch when: always
expire_in: 24h
.static:
stage: Static Analysis
script:
- source ${VENV_DIR}/bin/activate
- black --check .
# - flake8 . ## not ready
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment