Skip to content

feat: add SHACL validation tool for RDF data #2

feat: add SHACL validation tool for RDF data

feat: add SHACL validation tool for RDF data #2

Workflow file for this run

name: tests
on: [push, workflow_call]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0
# https://github.com/astral-sh/setup-uv
- name: Install uv
uses: astral-sh/setup-uv@v4
# https://github.com/actions/setup-python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: uv sync --group dev
- name: Code Quality
run: uv run black . --check
- name: Test with pytest
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_GITHUB_TOKEN }}
GITLAB_TOKEN: ${{ secrets.GITLAB_ACCESS_TOKEN }}
run: make test
- name: Upload coverage report
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_GITHUB_TOKEN }}
GITLAB_TOKEN: ${{ secrets.GITLAB_ACCESS_TOKEN }}
COVERALLS_PARALLEL: true
run: |
uv run coveralls --service=github-actions
continue-on-error: true
finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
# https://github.com/coverallsapp/github-action
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true