Skip to content
Snippets Groups Projects
Commit 7c35b26c authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

drop python2 support from the ci

parent 25010bf5
No related branches found
No related tags found
No related merge requests found
...@@ -18,25 +18,12 @@ jobs: ...@@ -18,25 +18,12 @@ jobs:
- -
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with:
python-version: '3.x' python-version: '3.x'
- name: "Main Script" - name: "Main Script"
run: | run: |
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh
. ./prepare-and-run-flake8.sh "$(basename $GITHUB_REPOSITORY)" examples test . ./prepare-and-run-flake8.sh "$(basename $GITHUB_REPOSITORY)" examples test
pytest2:
name: Pytest on Py2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Main Script"
run: |
sed 's/python=3/python=2.7/' .test-conda-env-py3.yml > .test-conda-env-py2.yml
grep -v mpi4py .test-conda-env-py2.yml > .test-conda-env.yml
CONDA_ENVIRONMENT=.test-conda-env.yml
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh
. ./build-and-test-py-project-within-miniconda.sh
pytest3: pytest3:
name: Pytest on Py3 name: Pytest on Py3
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
Python 2.7 POCL:
script:
- export PY_EXE=python2.7
- export PYOPENCL_TEST=portable:pthread
- export EXTRA_INSTALL="pybind11 numpy mako"
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
tags:
- python2.7
- pocl
- mpi
# https://github.com/pocl/pocl/issues/757
allow_failure: true
except:
- tags
artifacts:
reports:
junit: test/pytest.xml
Python 3 POCL: Python 3 POCL:
script: script:
- export PY_EXE=python3 - export PY_EXE=python3
...@@ -54,26 +35,6 @@ Python 3 Intel: ...@@ -54,26 +35,6 @@ Python 3 Intel:
reports: reports:
junit: test/pytest.xml junit: test/pytest.xml
Python 2.7 POCL MPI:
script:
- export PY_EXE=python2.7
- export PYOPENCL_TEST=portable:pthread
- export EXTRA_INSTALL="pybind11 numpy mako mpi4py pymetis"
- export PYTEST_ADDOPTS="-k mpi"
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
tags:
- python2.7
- pocl
- mpi
# https://github.com/pocl/pocl/issues/757
allow_failure: true
except:
- tags
artifacts:
reports:
junit: test/pytest.xml
Python 3 POCL MPI: Python 3 POCL MPI:
script: script:
- export PY_EXE=python3 - export PY_EXE=python3
......
...@@ -31,9 +31,7 @@ def main(): ...@@ -31,9 +31,7 @@ def main():
'Natural Language :: English', 'Natural Language :: English',
'Programming Language :: Python', 'Programming Language :: Python',
'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
# 3.x has not yet been tested.
'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Mathematics',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment