From c090d1964203f92ba0332bf7967283fba849a39c Mon Sep 17 00:00:00 2001 From: "Gao, Xiang" Date: Sun, 22 Sep 2019 21:43:25 -0700 Subject: [PATCH 1/3] Move python2 check to GitHub Actions --- .github/workflows/python2.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/python2.yml 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 From e1437a583f40579899a7fa97b84001fc8fc344f6 Mon Sep 17 00:00:00 2001 From: "Gao, Xiang" Date: Sun, 22 Sep 2019 21:44:20 -0700 Subject: [PATCH 2/3] Delete python2.yml --- azure/python2.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 azure/python2.yml 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 From 888b76fb43f9094a557ba1e0e4833788c2720c6b Mon Sep 17 00:00:00 2001 From: "Gao, Xiang" Date: Sun, 22 Sep 2019 21:44:43 -0700 Subject: [PATCH 3/3] Rename azure/install_dependencies_python2.sh to ci/install_dependencies_python2.sh --- {azure => ci}/install_dependencies_python2.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {azure => ci}/install_dependencies_python2.sh (100%) 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