diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 44ab1d0..2402aea 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -40,3 +40,12 @@ jobs: - name: Test with pytest run: | pytest --cov-fail-under=100 -o xfail_strict=true --cov-report=term-missing . + deployment: + runs-on: ubuntu-latest + environment: production + steps: + - name: deploy + run: | + pip install -r requirements.txt + pip install . + python -m bootstraparse "example_userfiles" "docs" \ No newline at end of file diff --git a/src/bootstraparse/modules/config.py b/src/bootstraparse/modules/config.py index 984d3ea..692b2a9 100644 --- a/src/bootstraparse/modules/config.py +++ b/src/bootstraparse/modules/config.py @@ -7,6 +7,8 @@ # The ConfigLoader class has load_from_file and load_from_folder methods and __getitem__ for accessing loaded elements import os + +import rich import yaml from bootstraparse.modules import error_mngr @@ -130,5 +132,7 @@ class ConfigLoader: # def __init__(self, config_folder): # super().__init__(config_folder) - -# conf = ConfigLoader("./example_userfiles/config/aliases.yaml") +if __name__ == '__main__': + conf = ConfigLoader("../configs/") + conf.add_folder("../../../example_userfiles/config/") + rich.inspect(conf) diff --git a/tests/modules/test_context_mngr.py b/tests/modules/test_context_mngr.py index 4f8a356..49dd312 100644 --- a/tests/modules/test_context_mngr.py +++ b/tests/modules/test_context_mngr.py @@ -422,7 +422,7 @@ _token_list_with_expected_result = [ sy.EtUlistToken([sy.TextToken(["b"])]), ], _opts), ], - __GLk(1), # TODO : Add all optionals + __GLk(1), ], [ # Testing error handling [