Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
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
3 changes: 2 additions & 1 deletion .github/workflows/1.bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies (pytest)
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -r ./requirements/requirements.test.txt
python -m pip install -r ./requirements/requirements.core.txt
- name: Install dependencies (pydantic-v1)
run: |
python -m pip install -r ./requirements/requirements.pydantic-v1.txt
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,11 @@ ONION_CONFIG_EXTRA_DIR="./extra_configs"
To run tests, run the following command:

```sh
# Install core dependencies:
pip install -r ./requirements/requirements.core.txt

# Pydantic-v1:
pip install -r ./requirements/requirements.pydantic-v1.txt

# Pydantic-v2:
pip install -r ./requirements/requirements.pydantic-settings.txt

Expand Down
10 changes: 9 additions & 1 deletion docs/pages/dev/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
To run tests, run the following command:

```sh
# Install core dependencies:
pip install -r ./requirements/requirements.core.txt

# Pydantic-v1:
pip install -r ./requirements/requirements.pydantic-v1.txt
# Pydantic-v2:
pip install -r ./requirements/requirements.pydantic-settings.txt

# Install python test dependencies:
pip install -r ./requirements/requirements.test.txt
pip install -r ./requirements.test.txt

# Run tests:
python -m pytest -sv -o log_cli=true
Expand Down
5 changes: 4 additions & 1 deletion tests/test_onion_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
except ImportError:
pass

from onion_config import ConfigLoader, BaseConfig, WarnEnum
try:
from onion_config import ConfigLoader, BaseConfig, WarnEnum
except ImportError:
from src.onion_config import ConfigLoader, BaseConfig, WarnEnum


logger = logging.getLogger(__name__)
Expand Down