Newer
Older
# ===========================================================
# preparation
# ===========================================================
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- pip install --upgrade pip
- pip install pytest
- pip install -r requirements.txt
# ===========================================================
# normal jobs (non scheduled)
# ===========================================================
except:
- schedules
- pytest tests/core tests/funcs tests/integration dios/test
- python -m saqc --config ressources/data/config_ci.csv --data ressources/data/data.csv --outfile /tmp/test.csv
except:
- schedules
- pytest tests/core tests/funcs tests/integration dios/test
- python -m saqc --config ressources/data/config_ci.csv --data ressources/data/data.csv --outfile /tmp/test.csv
# test saqc with python 3.9
python39:
stage: test
except:
- schedules
image: python:3.9
script:
- pytest tests/core tests/funcs tests/integration
- python -m saqc --config ressources/data/config_ci.csv --data ressources/data/data.csv --outfile /tmp/test.csv
# check if everthing is properly formatted
black:
stage: test
script:
- black --check .
# make (visual) coverage in gitlab merge request diff's
coverage:
stage: test
except:
- schedules
allow_failure: true
- pytest --cov=saqc tests/core tests/funcs
after_script:
- coverage xml
# regex to find the coverage percentage in the job output
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
when: always
reports:
cobertura: coverage.xml
# make html docu with sphinx
except:
- schedules
# ===========================================================
# scheduled jobs
# ===========================================================
# fuzzy testing saqc
fuzzy:
stage: test