Skip to content
Snippets Groups Projects
Unverified Commit b0ca90aa authored by Duncan Macleod's avatar Duncan Macleod
Browse files

ci: run all CI on Python 3

i.e. drop support for Python 2
parent 9affeddc
Branches main
No related tags found
No related merge requests found
Pipeline #504249 failed
...@@ -8,31 +8,31 @@ include: ...@@ -8,31 +8,31 @@ include:
file: python.yml file: python.yml
.syntax: .syntax:
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:coverage
extends: .python:coverage
stage: Syntax check stage: Syntax check
needs: [] needs: []
variables:
PYTHON: "python3"
script: script:
# test that we can execute the WSGI app: # test that we can execute the WSGI app:
- ${PYTHON} "${CI_PROJECT_DIR}/src/application.py" - python3 -m coverage run --source src "${CI_PROJECT_DIR}/src/application.py"
syntax:el7: syntax:el7:
extends: .syntax extends: .syntax
image: igwn/base:el7 image: igwn/base:el7
variables:
PYTHON: "python2"
before_script: before_script:
- yum -y --setopt=obsoletes=0 install - yum -y --setopt=obsoletes=0 install
m2crypto m2crypto
python2 python3
python2-glue python3-coverage
pyodbc python3-lscsoft-glue
python3-m2crypto
python3-pip
# pyodbc not packaged for python3 on EL7, so build it from scratch
- yum -y install gcc-c++
- python3 -m pip install pyodbc
syntax:rl8: syntax:rl8:
extends: extends: .syntax
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:coverage
- .python:coverage
- .syntax
image: igwn/base:el8-testing image: igwn/base:el8-testing
before_script: before_script:
- yum -y install - yum -y install
...@@ -41,5 +41,3 @@ syntax:rl8: ...@@ -41,5 +41,3 @@ syntax:rl8:
python3-lscsoft-glue python3-lscsoft-glue
python3-m2crypto python3-m2crypto
python3-pyodbc python3-pyodbc
script:
- ${PYTHON} -m coverage run --source src "${CI_PROJECT_DIR}/src/application.py"
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