mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-24 06:40:17 +01:00
Compare commits
2 Commits
81e3ca3d9c
...
28bbb919ce
Author | SHA1 | Date | |
---|---|---|---|
28bbb919ce | |||
b1de9552a4 |
91
.drone.yml
91
.drone.yml
@ -1,91 +0,0 @@
|
|||||||
---
|
|
||||||
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
|
|
||||||
- python -m pip install poetry
|
|
||||||
- poetry install
|
|
||||||
- poetry run pytest
|
|
||||||
# Basic test
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
|
||||||
# Basic test with unsafe fixes
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
|
||||||
# Geography test
|
|
||||||
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv
|
|
||||||
# Geography test with unsafe fixes
|
|
||||||
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv -u
|
|
||||||
# Test with experimental checks
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e
|
|
||||||
# Test with AGROVOC validation
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject
|
|
||||||
# Test with AGROVOC validation (and dropping invalid)
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject -d
|
|
||||||
|
|
||||||
---
|
|
||||||
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 git
|
|
||||||
- python -m pip install poetry
|
|
||||||
- poetry install
|
|
||||||
- poetry run pytest
|
|
||||||
# Basic test
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
|
||||||
# Basic test with unsafe fixes
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
|
||||||
# Geography test
|
|
||||||
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv
|
|
||||||
# Geography test with unsafe fixes
|
|
||||||
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv -u
|
|
||||||
# Test with experimental checks
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e
|
|
||||||
# Test with AGROVOC validation
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject
|
|
||||||
# Test with AGROVOC validation (and dropping invalid)
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject -d
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: python39
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: test
|
|
||||||
image: python:3.9-slim
|
|
||||||
commands:
|
|
||||||
- id
|
|
||||||
- python -V
|
|
||||||
- apt update && apt install -y gcc g++ libicu-dev pkg-config git
|
|
||||||
- python -m pip install poetry
|
|
||||||
- poetry install
|
|
||||||
- poetry run pytest
|
|
||||||
# Basic test
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv
|
|
||||||
# Basic test with unsafe fixes
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -u
|
|
||||||
# Geography test
|
|
||||||
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv
|
|
||||||
# Geography test with unsafe fixes
|
|
||||||
- poetry run csv-metadata-quality -i data/test-geography.csv -o /tmp/test.csv -u
|
|
||||||
# Test with experimental checks
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv -e
|
|
||||||
# Test with AGROVOC validation
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject
|
|
||||||
# Test with AGROVOC validation (and dropping invalid)
|
|
||||||
- poetry run csv-metadata-quality -i data/test.csv -o /tmp/test.csv --agrovoc-fields dcterms.subject -d
|
|
||||||
|
|
||||||
# vim: ts=2 sw=2 et
|
|
@ -1,7 +1,6 @@
|
|||||||
<h1 align="center">DSpace CSV Metadata Quality Checker</h1>
|
<h1 align="center">DSpace CSV Metadata Quality Checker</h1>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://ci.mjanja.ch/alanorth/csv-metadata-quality"><img alt="Build Status" src="https://ci.mjanja.ch/api/badges/alanorth/csv-metadata-quality/status.svg"></a>
|
|
||||||
<a href="https://github.com/ilri/csv-metadata-quality/actions"><img alt="Build and Test" src="https://github.com/ilri/csv-metadata-quality/workflows/Build%20and%20Test/badge.svg"></a>
|
<a href="https://github.com/ilri/csv-metadata-quality/actions"><img alt="Build and Test" src="https://github.com/ilri/csv-metadata-quality/workflows/Build%20and%20Test/badge.svg"></a>
|
||||||
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
|
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
|
||||||
</p>
|
</p>
|
||||||
|
@ -52,7 +52,6 @@ dev-dependencies = [
|
|||||||
"isort~=5.13",
|
"isort~=5.13",
|
||||||
"csvkit~=2.0",
|
"csvkit~=2.0",
|
||||||
"ipython~=8.26",
|
"ipython~=8.26",
|
||||||
"fixit~=2.1",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# So hatch doesn't try to build other top-level directories like "data"
|
# So hatch doesn't try to build other top-level directories like "data"
|
||||||
|
Loading…
Reference in New Issue
Block a user