diff --git a/.github/workflows/python2.yml b/.github/workflows/python2.yml new file mode 100644 index 000000000..892bb2344 --- /dev/null +++ b/.github/workflows/python2.yml @@ -0,0 +1,27 @@ +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 diff --git a/azure/python2.yml b/azure/python2.yml deleted file mode 100644 index 867794cb2..000000000 --- a/azure/python2.yml +++ /dev/null @@ -1,29 +0,0 @@ -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 diff --git a/azure/install_dependencies_python2.sh b/ci/install_dependencies_python2.sh similarity index 100% rename from azure/install_dependencies_python2.sh rename to ci/install_dependencies_python2.sh