From 490701f24474b7c1b3ebd5e491f7146d443e94fc Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 24 Dec 2021 14:47:25 +0200 Subject: [PATCH] Run more CLI tests in CI --- .drone.yml | 44 +++++++++++++++++++++++++++++--- .github/workflows/python-app.yml | 11 +++++++- 2 files changed, 50 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0bc3ae9..50d7a98 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,16 @@ steps: - pip install -r requirements-dev.txt - pytest - python setup.py install - - csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e -u --agrovoc-fields dcterms.subject,cg.coverage.country + # Basic test + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv + # Test with unsafe fixes + - csv-metadata-quality -i data/test.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 @@ -30,7 +39,16 @@ steps: - pip install -r requirements-dev.txt - pytest - python setup.py install - - csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e -u --agrovoc-fields dcterms.subject,cg.coverage.country + # Basic test + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv + # Test with unsafe fixes + - csv-metadata-quality -i data/test.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 @@ -47,7 +65,16 @@ steps: - pip install -r requirements-dev.txt - pytest - python setup.py install - - csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e -u --agrovoc-fields dcterms.subject,cg.coverage.country + # Basic test + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv + # Test with unsafe fixes + - csv-metadata-quality -i data/test.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 @@ -64,6 +91,15 @@ steps: - pip install -r requirements-dev.txt - pytest - python setup.py install - - csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e -u --agrovoc-fields dcterms.subject,cg.coverage.country + # Basic test + - csv-metadata-quality -i data/test.csv -o /tmp/test.csv + # Test with unsafe fixes + - csv-metadata-quality -i data/test.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 # vim: ts=2 sw=2 et diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index e1b50ef..8dfcaef 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -38,4 +38,13 @@ jobs: - name: Test CLI run: | python setup.py install - csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e -u --agrovoc-fields dcterms.subject,cg.coverage.country + # Basic test + csv-metadata-quality -i data/test.csv -o /tmp/test.csv + # Test with unsafe fixes + csv-metadata-quality -i data/test.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