From 0d719cf42a7df8497fc73ca19112aed9e60124dc Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 25 Oct 2022 10:47:16 +0300 Subject: [PATCH] .drone.yml: add Python 3.11 --- .drone.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.drone.yml b/.drone.yml index 578d85d..3ad3fc3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,33 @@ +--- +kind: pipeline +type: docker +name: python311 + +steps: +- name: test + image: python:3.11-slim + commands: + - id + - python -V + - apt update && apt install -y gcc g++ libicu-dev pkg-config + - pip install -r requirements-dev.txt + - pytest + - python setup.py install + # Basic test + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv + # Basic test with unsafe fixes + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u + # Geography test + - csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv + # Geography test with unsafe fixes + - csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv -u + # Test with experimental checks + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e + # Test with AGROVOC validation + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject + # Test with AGROVOC validation (and dropping invalid) + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject -d + --- kind: pipeline type: docker