Skip to content

Commit

Permalink
Rerun failures
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jul 8, 2024
1 parent 60038bd commit cdc7d50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,19 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install requirements

- name: Install requirements (common)
run: |
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: Install requirements (common)
run: |
pip install -e .
# Replace default path to CKAN core config file with the one on the container
sed -i -e 's/use = config:.*/use = config:\/srv\/app\/src\/ckan\/test-core.ini/' test.ini
- name: Setup other extension
- name: Install requirements (2.9)
run: |
pip install -U pytest-rerunfailures
if: ${{ matrix.ckan-version == '2.9' }}
- name: Setup other extensions
run: |
git clone https://github.com/ckan/ckanext-harvest
pip install -e ckanext-harvest
Expand Down
21 changes: 0 additions & 21 deletions ckanext/dcat/tests/test_shacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,24 +197,3 @@ def test_validate_dcat_ap_2_graph_shapes_recommended(graph):
r = validate(graph, shacl_graph=path)
conforms, results_graph, results_text = r
assert conforms, results_text


@pytest.mark.usefixtures("with_plugins")
@pytest.mark.ckan_config("ckan.plugins", "dcat scheming_datasets")
@pytest.mark.ckan_config(
"scheming.dataset_schemas", "ckanext.dcat.schemas:dcat_ap_2.1_full.yaml"
)
@pytest.mark.ckan_config(
"scheming.presets",
"ckanext.scheming:presets.json ckanext.dcat.schemas:presets.yaml",
)
@pytest.mark.ckan_config(
"ckanext.dcat.rdf.profiles", "euro_dcat_ap_2 euro_dcat_ap_scheming"
)
def test_validate_dcat_ap_2_graph_shapes_range(graph):

# dcat-ap_2.1.1_shacl_range.ttl: constraints concerning object range
path = _get_shacl_file_path("dcat-ap_2.1.1_shacl_range.ttl")
r = validate(graph, shacl_graph=path)
conforms, results_graph, results_text = r
assert conforms, results_text

0 comments on commit cdc7d50

Please sign in to comment.