2021-10-11 19:08:15 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: python310
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.10-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
|
2021-12-24 13:47:25 +01:00
|
|
|
# Basic test
|
|
|
|
- csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
2022-09-01 15:57:29 +02:00
|
|
|
# Basic test with unsafe fixes
|
2021-12-24 13:47:25 +01:00
|
|
|
- csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
2022-09-01 15:57:29 +02:00
|
|
|
# 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
|
2021-12-24 13:47:25 +01:00
|
|
|
# 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
|
2021-10-11 19:08:15 +02:00
|
|
|
|
2020-12-14 22:42:23 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: python39
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.9-slim
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- python -V
|
2021-03-11 11:07:28 +01:00
|
|
|
- apt update && apt install -y gcc g++ libicu-dev pkg-config
|
2020-12-14 22:42:23 +01:00
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
- python setup.py install
|
2021-12-24 13:47:25 +01:00
|
|
|
# Basic test
|
|
|
|
- csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
2022-09-01 15:57:29 +02:00
|
|
|
# Basic test with unsafe fixes
|
2021-12-24 13:47:25 +01:00
|
|
|
- csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
2022-09-01 15:57:29 +02:00
|
|
|
# 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
|
2021-12-24 13:47:25 +01:00
|
|
|
# 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
|
2020-12-14 22:42:23 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: python38
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.8-slim
|
|
|
|
commands:
|
|
|
|
- id
|
|
|
|
- python -V
|
2021-03-11 11:07:28 +01:00
|
|
|
- apt update && apt install -y gcc g++ libicu-dev pkg-config
|
2020-12-14 22:42:23 +01:00
|
|
|
- pip install -r requirements-dev.txt
|
|
|
|
- pytest
|
|
|
|
- python setup.py install
|
2021-12-24 13:47:25 +01:00
|
|
|
# Basic test
|
|
|
|
- csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
2022-09-01 15:57:29 +02:00
|
|
|
# Basic test with unsafe fixes
|
2021-12-24 13:47:25 +01:00
|
|
|
- csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
2022-09-01 15:57:29 +02:00
|
|
|
# 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
|
2021-12-24 13:47:25 +01:00
|
|
|
# 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
|
2020-12-14 22:42:23 +01:00
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et
|