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

Move python2 check to GitHub Actions (#318)

* Move python2 check to GitHub Actions

* Delete python2.yml

* Rename azure/install_dependencies_python2.sh to ci/install_dependencies_python2.sh
parent 3018a82b
name: python2
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.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_python2.sh
pip install .
- name: Run minimum python2 tests
run: |
python2 examples/energy_force.py
python2 examples/ase_interface.py
queue:
name: Hosted Ubuntu 1604
timeoutInMinutes: 30
trigger:
batch: true
branches:
include:
- master
variables:
python.version: '2.7'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
inputs:
versionSpec: '$(python.version)'
- script: 'azure/install_dependencies_python2.sh && pip install .'
displayName: 'Install dependencies'
- script: 'python2 examples/energy_force.py'
displayName: Energy and Force Example
- script: 'python2 examples/ase_interface.py'
displayName: ASE Interface Example
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