codefresh.yml 1.04 KB
Newer Older
Gao, Xiang's avatar
Gao, Xiang committed
1
2
3
version: '1.0'

steps:
4
5

  BuildTorchANI:
Gao, Xiang's avatar
Gao, Xiang committed
6
7
    type: build
    description: Build TorchANI
8
    image_name: torchani
Gao, Xiang's avatar
Gao, Xiang committed
9
10
    dockerfile: Dockerfile
    tag: latest
11
12
13

  CodeStyle:
    image: '${{BuildTorchANI}}'
Gao, Xiang's avatar
Gao, Xiang committed
14
    commands:
15
      - flake8
16
17
18
19

  UnitTests:
    image: '${{BuildTorchANI}}'
    commands:
20
      - find . -name '*.pyc' -delete
21
      - python setup.py test
22
23
24
25
26
      # - python2 setup.py test

  Examples:
    image: '${{BuildTorchANI}}'
    commands:
27
28
29
      - rm -rf *.pt
      - python examples/nnp_training.py dataset/ani_gdb_s01.h5 dataset/ani_gdb_s01.h5
      - python examples/nnp_training.py dataset/ani_gdb_s01.h5 dataset/ani_gdb_s01.h5  # run twice to test if checkpoint is working
30
      - python examples/training-benchmark.py ./dataset/ani_gdb_s01.h5
Gao, Xiang's avatar
Gao, Xiang committed
31
      - python examples/training-benchmark.py ./dataset/ani_gdb_s01.h5  # run twice to test if checkpoint is working
Gao, Xiang's avatar
Gao, Xiang committed
32
      - python examples/energy_force.py
33
      - python examples/neurochem-test.py ./dataset/ani_gdb_s01.h5
Gao, Xiang's avatar
Gao, Xiang committed
34
35
36
37
38

  Docs:
    image: '${{BuildTorchANI}}'
    commands:
      - sphinx-build docs build