Skip to content

Commit

Permalink
Merge pull request #26 from oarepo/rdm_conftest
Browse files Browse the repository at this point in the history
rdm conftest
  • Loading branch information
mesemus authored Dec 10, 2024
2 parents 3e561ed + 4c1bb52 commit 096e1a3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_call:
inputs:
oarepo:
description: OARepo version (11, 12, ...)
description: OARepo version (12, ...)
required: true
default: 11
default: 12
type: string

env:
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Cache pip
uses: actions/cache@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
oarepo:
description: OARepo version (11, 12, ...)
description: OARepo version (12, ...)
required: true
default: 11
default: 12

jobs:
build:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ permissions:
contents: read

jobs:
build11:
uses: ./.github/workflows/build.yaml
with:
oarepo: 11

build12:
uses: ./.github/workflows/build.yaml
with:
oarepo: 12

publish:
runs-on: ubuntu-latest
needs: build11
needs: build12
steps:
- name: Use built artifacts
uses: actions/download-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions oarepo_model_builder_tests/templates/conftest.py.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ APP_CONFIG = {
# disable redis cache
"CACHE_TYPE": "SimpleCache", # Flask-Caching related configs
"CACHE_DEFAULT_TIMEOUT": 300,
"RDM_PERSISTENT_IDENTIFIERS": {},
"RDM_USER_MODERATION_ENABLED": True,
"RDM_RECORDS_ALLOW_RESTRICTION_AFTER_GRACE_PERIOD": False
}

@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

OAREPO_VERSION=${OAREPO_VERSION:-11}
OAREPO_VERSION=${OAREPO_VERSION:-12}

if [ -d .venv-builder ] ; then
rm -rf .venv-builder
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-model-builder-tests
version = 4.0.7
version = 4.0.8
description =
authors = Ronald Krist <[email protected]>
readme = README.md
Expand All @@ -9,7 +9,7 @@ long_description_content_type = text/markdown


[options]
python = >=3.9
python = >=3.12
install_requires =
oarepo-model-builder>=4.0.3
packages = find:
Expand Down

0 comments on commit 096e1a3

Please sign in to comment.