-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
47 lines (42 loc) · 1.23 KB
/
.gitlab-ci.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
39
40
41
42
43
44
45
46
47
stages:
# - build
- test
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
PRE_COMMIT_HOME: "$CI_PROJECT_DIR/.cache/pre-commit"
RUFF_CACHE_DIR: "$CI_PROJECT_DIR/.cache/ruff_cache"
MYPY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/mypy_cache"
cache:
key: $CI_PROJECT_NAME
paths:
- .cache/
test:
stage: test
needs: []
tags:
- u60-docker-gpu
image: tandav/pitch-detectors:12.4.1-cudnn-devel-ubuntu22.0-python3.12
variables:
PITCH_DETECTORS_SPICE_MODEL_PATH: /models/spice_model
PITCH_DETECTORS_PENN_CHECKPOINT_PATH: /models/fcnf0++.pt
script:
- export $(grep -v '^#' $S3_ENV | xargs) && python scripts/download_models.py
- pytest --cov pitch_detectors --cov-report term --cov-report xml --junitxml report.xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
when: always
expire_in: 1 week
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: report.xml
lint:
stage: test
needs: []
image: python:3.12@sha256:fce9bc7648ef917a5ab67176cf1c7eb41b110452e259736144bc22f32f3aa622
variables:
PIP_INDEX_URL: https://pypi.tandav.me/index/
script:
- pip install pre-commit
- pre-commit run --all-files