From 176af229c7fa7e63dfb72b8c44ad6ed8284629cc Mon Sep 17 00:00:00 2001 From: Ferexio Date: Wed, 23 Nov 2022 21:02:46 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cff2295 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +on: +push: +branches: [ main ] +jobs: +build: +runs-on: ubuntu-latest +steps: +- uses: actions/checkout@v3 +- name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.9 +- name: Install dependencies + run: | + python3 -m pip install --upgrade pip + pip3 install testing.postgresql + pip3 install sqlalchemy + pip3 install pgmock + pip3 install psycopg2 + pip3 install unittest + pip3 install pytest +- name: Run tests +test: + script: + - python3 -m unittest tests/* \ No newline at end of file