mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-12-22 04:02:19 +01:00
.drone.yml: try to use poetry instead of pip
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
25ac290df4
commit
a84fcf0b7b
60
.drone.yml
60
.drone.yml
@ -10,23 +10,23 @@ steps:
|
|||||||
- id
|
- id
|
||||||
- python -V
|
- python -V
|
||||||
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
||||||
- pip install -r requirements-dev.txt
|
- python -m pip install poetry
|
||||||
- pytest
|
- poetry install
|
||||||
- python setup.py install
|
- poetry run pytest
|
||||||
# Basic test
|
# 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
|
# 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
|
# 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
|
# 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
|
# 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
|
# 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)
|
# 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
|
kind: pipeline
|
||||||
@ -40,23 +40,23 @@ steps:
|
|||||||
- id
|
- id
|
||||||
- python -V
|
- python -V
|
||||||
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
||||||
- pip install -r requirements-dev.txt
|
- python -m pip install poetry
|
||||||
- pytest
|
- poetry install
|
||||||
- python setup.py install
|
- poetry run pytest
|
||||||
# Basic test
|
# 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
|
# 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
|
# 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
|
# 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
|
# 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
|
# 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)
|
# 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
|
kind: pipeline
|
||||||
@ -70,22 +70,22 @@ steps:
|
|||||||
- id
|
- id
|
||||||
- python -V
|
- python -V
|
||||||
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
||||||
- pip install -r requirements-dev.txt
|
- python -m pip install poetry
|
||||||
- pytest
|
- poetry install
|
||||||
- python setup.py install
|
- poetry run pytest
|
||||||
# Basic test
|
# 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
|
# 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
|
# 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
|
# 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
|
# 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
|
# 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)
|
# 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
|
# vim: ts=2 sw=2 et
|
||||||
|
Loading…
Reference in New Issue
Block a user