Commit 63a937d8 authored by Chad Leong's avatar Chad Leong
Browse files

Merge branch...

Merge branch '1-setup-ci-automated-testing-and-linting-flake8-and-add-a-simple-unit-test' into 'main'

Resolve "Setup CI automated testing and linting (flake8) and add a simple unit test."

Closes #1

See merge request osdu/platform/data-flow/data-loading/wellbore-ddms-las-loader!1
parents f4235331 b71cbe17
Pipeline #63964 passed with stage
in 1 minute and 1 second
default:
image: python:3
before_script:
- python --version
- cd src
- pip install pipenv
- pipenv install --dev
- pipenv run python --version
run-flake8:
stage: test
script:
- pipenv run flake8
run-test:
stage: test
script:
- pipenv run python -m unittest
\ No newline at end of file
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[dev-packages]
flake8 = "*"
[requires]
python_version = "3.9"
{
"_meta": {
"hash": {
"sha256": "0e58db92196fb9a00e69bc8e7282cdb722ff960a57fe8e13969ae24ff86e8959"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.9"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {},
"develop": {
"flake8": {
"hashes": [
"sha256:07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b",
"sha256:bf8fd333346d844f616e8d47905ef3a3384edae6b4e9beb0c5101e25e3110907"
],
"index": "pypi",
"version": "==3.9.2"
},
"mccabe": {
"hashes": [
"sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42",
"sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"
],
"version": "==0.6.1"
},
"pycodestyle": {
"hashes": [
"sha256:514f76d918fcc0b55c6680472f0a37970994e07bbb80725808c17089be302068",
"sha256:c389c1d06bf7904078ca03399a4816f974a1d590090fecea0c63ec26ebaf1cef"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==2.7.0"
},
"pyflakes": {
"hashes": [
"sha256:7893783d01b8a89811dd72d7dfd4d84ff098e5eed95cfa8905b22bbffe52efc3",
"sha256:f5bc8ecabc05bb9d291eb5203d6810b49040f6ff446a756326104746cc00c1db"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==2.3.1"
}
}
}
import unittest
class TestSimple(unittest.TestCase):
def test_true_is_true(self):
self.assertTrue(True)
def test_false_is_false(self):
self.assertFalse(False)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment