Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(check_data): check csv content #2

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/check_data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow will check out the code, install DuckDb then run data quality tests
# For more information see: https://dev.to/optnc/effortless-data-quality-wduckdb-on-github-2mkb
name: 🧪 Check data


on: [pull_request, push]

jobs:
test:
name: 🧪 Verify data
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4

- name: ⚙️ Install DuckDB
uses: opt-nc/[email protected]
with:
version: ${{ vars.VERSION_DUCKDB}}


- name : 🕵️‍♂️ Check data integrity
run: |
duckdb < duck.sql
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
19 changes: 19 additions & 0 deletions duck.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- Load confluence spaces
create
or replace table domaine (
domain VARCHAR NOT NULL,
marque_nom VARCHAR NOT NULL UNIQUE,
marque_description VARCHAR NOT NULL,
url VARCHAR

);

insert into
domaine (domain,marque_nom,marque_description,url)
from
(
from
'data/domaines.csv'
) t;

from domaine;
Loading