Updated deployment

This commit is contained in:
Maximilien Rigaut 2022-06-07 00:49:39 +02:00
parent 183861b10b
commit a114996a7b
No known key found for this signature in database
GPG Key ID: 4F14B23709ADA5B1
3 changed files with 16 additions and 3 deletions

View File

@ -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"

View File

@ -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)

View File

@ -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
[