| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A GitHub Action to run DataLinter—a contextual data and code linter for machine-learning and statistical-modelling workflows—inside a reproducible Docker container. Results are automatically posted as a comment on pull requests.
DataLinter detects potential issues in data files and associated code (R, Python, etc.) used in ML/statistical pipelines.
Add the following workflow to .github/workflows/datalinter.yml:
name: DataLinter
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # Required by the embedded PR comment action on newer runners
PROJECT_DIR_NAME: "target-project"
on:
pull_request:
branches: [ main, master ]
push:
branches: [ main, master ]
jobs:
datalinter:
name: Run DataLinter
runs-on: ubuntu-latest
permissions:
pull-requests: write # Needed for automatic PR comments
# issues: write # Optional; not currently used
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
path: ${{ env.PROJECT_DIR_NAME }}
- name: Run DataLinter
id: datalinter
uses: OxoaResearch/DataLinter-Action@v1
with:
target-project-checkout-dir: ${{ env.PROJECT_DIR_NAME }}
data-path: "data/my_data.csv"
code-path: "code/my_analysis.r"
config-path: "config/datalinter.toml"
log-level: "warning"on:
push:
branches: [ main ]
# ... rest of job identical, but remove `pull-requests: write` if desireddatalinter-github-action has the following inputs:
Complete DataLinter output (stdout + stderr) formatted as a Markdown code block. You can reference it with ${{ steps.<id>.outputs.result }} if you need further processing.
The action splits the supplied paths into directory and filename components.
It pulls ghcr.io/zgornel/datalinter-compiled:latest
Three Docker volumes are mounted:
datalinter binary is executed inside the container.
All output is captured and stored in the result output.
On pull_request events the output is automatically posted (or edited) as a PR comment using thollander/actions-comment-pull-request@v3.
Create a datalinter.toml file in your repository. Full documentation and example configurations are available in the DataLinter repository.
Please file an issue to report a bug or request a feature.
This project is licensed under the MIT License. See LICENSE for details.
| Back | FazBrowse Home | New Git URL |