Unverified Commit ee5ac075 authored by Akke Viitanen's avatar Akke Viitanen
Browse files

add test pipeline

parent de248616
Loading
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -5,12 +5,20 @@ stages:
  - test
  - deploy

build-job:
test-job:
  stage: test
  tags:
    - local
  stage: build
  script:
    - echo "Hello world!"
    - pip install --upgrade pip
    - pip install -e .
    - pytest --cov=src --cov-report=html tests/
  artifacts:
    paths:
      - htmlcov/
  only:
    - feature_documentation
    - main

pages:
  stage: deploy
@@ -26,7 +34,7 @@ pages:
    - mv build/html ../public
  artifacts:
    paths:
      - public
      - public/
  only:
    - feature_documentation
    - main
+0 −4
Original line number Diff line number Diff line
@@ -222,7 +222,6 @@ fig/plambda_qu_sf_ctn_ctk_20251006.pdf: src/scripts/plots/plot_plambda_qu_sf_ctn
fig/plambda_qu_sf_ctn_ctk_20251025.pdf: src/scripts/plots/plot_plambda_qu_sf_ctn_ctk.py
	python3 $< $@


#fig/mbh_mstar.pdf: src/python/plot_mbh_mstar.py
fig/mbh_mstar.pdf: src/scripts/plots/plot_mbh_mstar.py
	python3 $< $@
@@ -242,16 +241,13 @@ table/catalog_column_description.tex: python/create_table_catalog_column_descrip
table/catalog_column_description_public.tex: python/create_table_catalog_column_description.py
	python3 $< 1 > $@


fig/mag_sigma_ivezic.pdf: test/test_ivezic.py python/ivezic.py
	python3 $< 2>&1 | tee var/test_ivezic.log


# Calculates statistics in the baselines
var/baseline_statistics.log: python/calculate_baseline_statistics.py
	python3 $^ | tee $@


numbers_truth_catalog:
	python3 python/get_numbers_truth_catalog.py