Unverified Commit ae8c5db4 authored by Gao, Xiang's avatar Gao, Xiang Committed by GitHub
Browse files

Move docs to github actions (#310)

* Move docs to github actions

* Delete docs.yml

* Create install_dependencies.sh (#311)

* Rename install_dependencies.sh to ci/install_dependencies.sh

* +x
parent 9014a9fa
name: docs
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 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: Install dependencies
run: |
ci/install_dependencies.sh
pip install h5py pytorch-ignite tb-nightly sphinx sphinx_rtd_theme matplotlib pillow sphinx-gallery
pip install .
- name: Download data files
run: ./download.sh
- name: Build documents
run: sphinx-build docs build
queue:
name: Hosted Ubuntu 1604
timeoutInMinutes: 300
trigger:
batch: true
branches:
include:
- master
variables:
python.version: '3.7'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
inputs:
versionSpec: '$(python.version)'
- script: 'azure/install_dependencies.sh && pip install h5py pytorch-ignite tb-nightly sphinx sphinx_rtd_theme matplotlib pillow sphinx-gallery && pip install .'
displayName: 'Install dependencies'
- script: './download.sh'
displayName: 'Download data files'
- script: 'sphinx-build docs build'
displayName: Documents
#!/bin/bash
python -m 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
pip install 'ase<=3.17'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment