Skip to content

Commit

Permalink
Add badge to display stable torch compatibility (#400)
Browse files Browse the repository at this point in the history
* Add badge to display stable torch compatibility

* more

* more

* don't run on PR

* nl
  • Loading branch information
zasdfgbnm authored and farhadrgh committed Nov 21, 2019
1 parent 493731b commit f2b9ac8
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/stable-torch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: stable-torch

on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Fetch submodules
run: git submodule update --init
- name: Install dependencies
run: |
pip install --upgrade pip
pip install torch pytest
pip install -r test_requirements.txt
pip install .
- name: Download data files
run: ./download.sh
- name: Run tests
run: pytest
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ Deploy:
[![Actions Status](https://github.com/aiqm/torchani/workflows/deploy-docs/badge.svg)](https://github.com/aiqm/torchani/actions)
[![Actions Status](https://github.com/aiqm/torchani/workflows/deploy-pypi/badge.svg)](https://github.com/aiqm/torchani/actions)

We only provide compatibility with nightly PyTorch, but you can check if stable PyTorch happens to be supported by looking at the following badge:

[![Actions Status](https://github.com/aiqm/torchani/workflows/stable-torch/badge.svg)](https://github.com/aiqm/torchani/actions)


TorchANI is a pytorch implementation of ANI. It is currently under alpha release, which means, the API is not stable yet. If you find a bug of TorchANI, or have some feature request, feel free to open an issue on GitHub, or send us a pull request.

<img src=https://raw.githubusercontent.com/aiqm/torchani/master/logo2.png width=500/>
Expand Down
4 changes: 2 additions & 2 deletions ci/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

python -m pip install --upgrade pip
pip install --upgrade pip
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install tqdm pyyaml future pkbar ase
pip install -r test_requirements.txt
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ase
h5py
pillow
pkbar
pyyaml

0 comments on commit f2b9ac8

Please sign in to comment.