config.yml 2.34 KB
Newer Older
chenzk's avatar
v1.0  
chenzk committed
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: 2.1
jobs:
  nbdev-tests:
    resource_class: xlarge
    docker:
      - image: mambaorg/micromamba:1.5-focal
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: micromamba install -n base -c conda-forge -y python=3.10 git -f environment-cpu.yml
      - run:
          name: Run nbdev tests
          command: |
            eval "$(micromamba shell hook --shell bash)"
            micromamba activate base
            pip install ".[dev]"
            nbdev_test --do_print --timing --n_workers 1
  test-model-performance:
    resource_class: xlarge
    docker:
      - image: mambaorg/micromamba:1.5-focal
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: micromamba install -n base -c conda-forge -y python=3.10 -f environment-cpu.yml
      - run:
          name: Run model performance tests
          command: |
            eval "$(micromamba shell hook --shell bash)"
            micromamba activate base
            pip install -e ".[dev]"
            export LD_LIBRARY_PATH=/opt/conda/lib:$LD_LIBRARY_PATH
            cd ./action_files/test_models/
            pip install -r requirements.txt
            python -m src.models
            python -m src.evaluation
            cd ../../
      - store_artifacts:
          path: ./action_files/test_models/data/evaluation.csv
          destination: evaluation.csv
  test-model-performance2:
    resource_class: xlarge
    docker:
      - image: mambaorg/micromamba:1.5-focal
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: micromamba install -n base -c conda-forge -y python=3.10 -f environment-cpu.yml
      - run:
          name: Run model performance tests
          command: |
            eval "$(micromamba shell hook --shell bash)"
            micromamba activate base
            pip install -e ".[dev]"
            export LD_LIBRARY_PATH=/opt/conda/lib:$LD_LIBRARY_PATH
            cd ./action_files/test_models/
            pip install -r requirements.txt
            python -m src.models2
            python -m src.evaluation2
            cd ../../
      - store_artifacts:
          path: ./action_files/test_models/data/evaluation.csv
          destination: evaluation.csv

workflows:
  sample:
    jobs:
      - nbdev-tests
      - test-model-performance
      - test-model-performance2