2023-05-29 20:31:03 +02:00
|
|
|
---
|
|
|
|
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 git
|
2023-05-30 10:39:08 +02:00
|
|
|
- python -m pip install poetry
|
|
|
|
- poetry install
|
|
|
|
- poetry run pytest
|
2023-05-29 20:31:03 +02:00
|
|
|
# Basic test
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
2023-05-29 20:31:03 +02:00
|
|
|
# Basic test with unsafe fixes
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
2023-05-29 20:31:03 +02:00
|
|
|
# Geography test
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv
|
2023-05-29 20:31:03 +02:00
|
|
|
# Geography test with unsafe fixes
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv -u
|
2023-05-29 20:31:03 +02:00
|
|
|
# Test with experimental checks
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e
|
2023-05-29 20:31:03 +02:00
|
|
|
# Test with AGROVOC validation
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject
|
2023-05-29 20:31:03 +02:00
|
|
|
# Test with AGROVOC validation (and dropping invalid)
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject -d
|
2023-05-29 20:31:03 +02:00
|
|
|
|
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
|
2022-11-28 20:05:34 +01:00
|
|
|
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
2023-05-30 10:39:08 +02:00
|
|
|
- python -m pip install poetry
|
|
|
|
- poetry install
|
|
|
|
- poetry run pytest
|
2021-12-24 13:47:25 +01:00
|
|
|
# Basic test
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
2022-09-01 15:57:29 +02:00
|
|
|
# Basic test with unsafe fixes
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
2022-09-01 15:57:29 +02:00
|
|
|
# Geography test
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv
|
2022-09-01 15:57:29 +02:00
|
|
|
# Geography test with unsafe fixes
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run 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
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e
|
2021-12-24 13:47:25 +01:00
|
|
|
# Test with AGROVOC validation
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject
|
2021-12-24 13:47:25 +01:00
|
|
|
# Test with AGROVOC validation (and dropping invalid)
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run 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
|
2022-11-28 20:05:34 +01:00
|
|
|
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
2023-05-30 10:39:08 +02:00
|
|
|
- python -m pip install poetry
|
|
|
|
- poetry install
|
|
|
|
- poetry run pytest
|
2021-12-24 13:47:25 +01:00
|
|
|
# Basic test
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
2022-09-01 15:57:29 +02:00
|
|
|
# Basic test with unsafe fixes
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
2022-09-01 15:57:29 +02:00
|
|
|
# Geography test
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv
|
2022-09-01 15:57:29 +02:00
|
|
|
# Geography test with unsafe fixes
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run 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
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e
|
2021-12-24 13:47:25 +01:00
|
|
|
# Test with AGROVOC validation
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject
|
2021-12-24 13:47:25 +01:00
|
|
|
# Test with AGROVOC validation (and dropping invalid)
|
2023-05-30 10:39:08 +02:00
|
|
|
- poetry run 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
|