diff --git a/concourse.yml b/concourse.yml new file mode 100644 index 0000000..6b56e94 --- /dev/null +++ b/concourse.yml @@ -0,0 +1,31 @@ +--- +resources: +- name: git-repo + type: git + source: + uri: https://codeberg.org/lomion/tmdb-bot + branch: develop + +- name: python-image + type: registry-image + icon: docker + source: + repository: python + tag: 3 + +jobs: +- name: unittests + public: true + plan: + - get: git-repo + trigger: true + - get: python-image + - task: run_tests + image: python-image + config: + platform: linux + inputs: + - name: git-repo + run: + dir: git-repo + path: ./runtests.sh diff --git a/runtests.sh b/runtests.sh new file mode 100755 index 0000000..811a057 --- /dev/null +++ b/runtests.sh @@ -0,0 +1,3 @@ +#!/bin/bash +pip3 install -r requirements.txt +python3 test_tmdb.py