Skip to content

Commit

Permalink
fix(package): Configured dummy configuration path in actions.
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
acederberg committed Sep 5, 2024
1 parent 47af15d commit 4644a72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/pr_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
echo "CAPTURA_CONFIG_CLIENT=$docker_config_path" >> .env
echo "CAPTURA_CONFIG_APP_TEST=$docker_config_path" >> .env
echo "CAPTURA_CONFIG_APP=$docker_config_path" >> .env
echo "CAPTURA_CONFIG_DUMMY=$docker_config_path" >> .env
echo "CAPTURA_FLAKEY=/home/captura/flakey.yaml" >> .env
- name: Start Docker Compose Project.
Expand All @@ -83,9 +84,12 @@ jobs:
echo "MySQL Version: $version" >> $GITHUB_STEP_SUMMARY
docker compose \
--file docker/compose.ci.yaml \
--env-file .env \
exec server \
bash -c ' \
source ~/app/.venv/bin/activate \
&& echo $CAPTURA_CONFIG_DUMMY \
&& echo $CAPTURA_CONFIG_APP_TEST \
&& poetry run simulatus initialize \
&& poetry run simulatus apply'
Expand All @@ -103,6 +107,7 @@ jobs:
run: |
docker compose \
--file docker/compose.ci.yaml \
--env-file .env \
exec server \
bash -c ' \
source ~/app/.venv/bin/activate \
Expand All @@ -123,6 +128,7 @@ jobs:
run: |
docker compose \
--file docker/compose.ci.yaml \
--env-file .env \
exec server \
bash -c ' \
source ~/app/.venv/bin/activate \
Expand All @@ -140,6 +146,7 @@ jobs:
run: |
docker compose \
--file docker/compose.ci.yaml \
--env-file .env \
cp server:/home/captura/app/coverage-report ./coverage-report
- name: Upload Coverage Report.
Expand Down
1 change: 0 additions & 1 deletion tests/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class PytestConfig(ConfigSimulatus, Config):
model_config = YamlSettingsConfigDict(
yaml_files={
util.PATH_CONFIG_TEST_APP: YamlFileConfigDict(required=True),
util.PATH_CONFIG_DUMMY: YamlFileConfigDict(required=False),
},
yaml_reload=False,
env_prefix=util.ENV_PREFIX,
Expand Down

0 comments on commit 4644a72

Please sign in to comment.