diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b5951c7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,12 @@ +kind: pipeline +name: default + +steps: +- name: test + image: python + commands: + - pip install -r requirements.txt + - pytest +trigger: + event: + - push diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/test_good.py b/test_good.py new file mode 100644 index 0000000..8582225 --- /dev/null +++ b/test_good.py @@ -0,0 +1,7 @@ +# Adapted from the test_sample.py example in the pytest documentation + +def inc(x): + return x + 1 + +def test_answer(): + assert inc(3) == 4