Skip to content
Snippets Groups Projects
Commit d4b22516 authored by Rivers, Travis (Contractor) Creighton's avatar Rivers, Travis (Contractor) Creighton Committed by Jeremy M Fee
Browse files

Gitlab tests2

parent e9e3423f
No related branches found
No related tags found
No related merge requests found
.coverage
cov.xml
.DS_Store
node_modules
*.pyc
......
image: ${DEVOPS_REGISTRY}usgs/centos:latest
stages:
- test
- integration
- deploy
variables:
CI_REGISTRY: ${CODE_REGISTRY}
CI_REGISTRY_IMAGE: ${CODE_REGISTRY_IMAGE}
## --------------------------------------------------
# Templates
## --------------------------------------------------
.check_code:
cache: {}
image: usgs/centos:latest
script:
- yum install -y wget which
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update --yes conda
- conda info -a
# Install Project Dependencies
- conda config --add channels conda-forge
- conda install python=${PYTHON_VERSION} obspy pycurl
- pip install pipenv
- export LC_ALL=C.UTF-8
- export LANG=C.UTF-8
- pipenv --site-packages install --dev --pre --skip-lock
# Run Code Checks
- pipenv run black --check .
- pipenv run pytest --cov-report xml:cov.xml --cov=test/
artifacts:
paths:
- cov.xml
reports:
junit: cov.xml
stage: test
tags:
- development
variables:
PYTHON_VERSION: 3.8
## --------------------------------------------------
# Test Stage
## --------------------------------------------------
Check Python 3.6:
extends:
- .check_code
variables:
PYTHON_VERSION: '3.6'
Check Python 3.7:
extends:
- .check_code
variables:
PYTHON_VERSION: '3.7'
Check Python 3.8:
extends:
- .check_code
variables:
PYTHON_VERSION: '3.8'
ARG FROM_IMAGE=usgs/centos:8
ARG FROM_IMAGE=usgs/centos:latest
FROM ${FROM_IMAGE}
LABEL maintainer="Jeremy Fee <jmfee@usgs.gov>"
......
......@@ -21,7 +21,7 @@ databases = {extras = ["postgresql", "sqlite"],version = "*"}
fastapi = "*"
httpx = "==0.11.1"
openpyxl = "*"
pydantic = "==1.4"
pydantic = "*"
sqlalchemy = "*"
sqlalchemy-utc = "*"
typing = "*"
......
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