From 562aaeef7dd1b07349f0c7138ce5ba2a4e2d6157 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 11 Oct 2021 20:11:32 +0300 Subject: [PATCH] .drone.yml: Test on Python 3.10 --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.drone.yml b/.drone.yml index c1aca17..d3ed435 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,44 @@ kind: pipeline type: docker +name: python10 + +steps: +- name: setup + image: postgres:10-alpine + environment: + PGPASSWORD: postgres + commands: + - id + - psql --version + - sleep 5 + - pg_isready -h database -U postgres -d dspacestatistics + - createuser -h database -U postgres dspacestatistics + - psql -h database -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'" + - psql -h database -U postgres -d dspacestatistics < tests/dspacestatistics.sql + +- name: test + image: python:3.10-slim + environment: + PGPASSWORD: dspacestatistics + DATABASE_HOST: database + commands: + - id + - python -V + - apt update && apt install -y gcc git libpq-dev + - pip install -r requirements-dev.txt + - pytest + +services: +- name: database + image: postgres:10-alpine + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: dspacestatistics + +--- +kind: pipeline +type: docker name: python39 steps: