From a84fcf0b7b9893dd8ae9e0a824adf396079fcbc9 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 30 May 2023 11:39:08 +0300 Subject: [PATCH] .drone.yml: try to use poetry instead of pip --- .drone.yml | 60 +++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.drone.yml b/.drone.yml index d309040..90f8b88 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,23 +10,23 @@ steps: - id - python -V - apt update && apt install -y gcc g++ libicu-dev pkg-config git - - pip install -r requirements-dev.txt - - pytest - - python setup.py install + - python -m pip install poetry + - poetry install + - poetry run pytest # Basic test - - csv-metadata-quality -i data/test.csv -o /tmp/test.csv + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject -d --- kind: pipeline @@ -40,23 +40,23 @@ steps: - id - python -V - apt update && apt install -y gcc g++ libicu-dev pkg-config git - - pip install -r requirements-dev.txt - - pytest - - python setup.py install + - python -m pip install poetry + - poetry install + - poetry run pytest # Basic test - - csv-metadata-quality -i data/test.csv -o /tmp/test.csv + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject -d --- kind: pipeline @@ -70,22 +70,22 @@ steps: - id - python -V - apt update && apt install -y gcc g++ libicu-dev pkg-config git - - pip install -r requirements-dev.txt - - pytest - - python setup.py install + - python -m pip install poetry + - poetry install + - poetry run pytest # Basic test - - csv-metadata-quality -i data/test.csv -o /tmp/test.csv + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run 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 + - poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject -d # vim: ts=2 sw=2 et