Commit Graph

19 Commits

Author SHA1 Message Date
1150b59dcf Update example for TEST_DATABASE_URL in CI workflow
- Modified the error message in the build workflow to clarify the expected format for the TEST_DATABASE_URL, specifying the use of a real IP address instead of the placeholder "host".
- This change enhances the guidance provided to users, ensuring correct configuration for database connections in testing scenarios.
2026-03-24 15:42:22 -05:00
4b2a3da611 Refactor database URL handling in Alembic environment
- Introduced a new function to normalize database URLs for Alembic, ensuring compatibility with different PostgreSQL drivers.
- Updated the `get_database_url` function to prioritize the use of the `TEST_DATABASE_URL` environment variable for CI and testing scenarios.
- Enhanced error messaging to clarify configuration requirements for database connections.

This change aims to improve the flexibility and reliability of database connections in the testing environment.
2026-03-24 15:28:41 -05:00
3ba9359881 Update CI workflow to include database migration before running tests
- Added an environment variable for the test database URL and executed an Alembic migration to ensure the database schema is up-to-date prior to running tests.
- This change aims to improve the reliability of test execution by ensuring the correct database state.
2026-03-24 15:20:08 -05:00
939053aea9 Enhance test output verbosity in CI workflow
- Updated the pytest command in the CI workflow to include additional flags for verbose output, allowing for more detailed test results and easier debugging.
- This change improves the visibility of test execution details, aiding in the identification of issues during the CI process.
2026-03-24 12:44:28 -05:00
b1a74d8e30 Improve CI workflow for backend tests by enhancing virtual environment setup
- Added a function to install the python3-venv package if the virtual environment creation fails due to missing ensurepip.
- Improved error handling and messaging for the installation process, ensuring compatibility with both root and non-root users.
- Streamlined the activation of the virtual environment for better clarity in the CI pipeline.
2026-03-24 12:37:27 -05:00
c8e6cb568a Refactor CI workflow for backend tests
- Consolidated the installation of backend dependencies and test execution into a single job in the CI workflow.
- Removed the use of actions/setup-python in favor of system Python and virtual environments to avoid issues on self-hosted runners.
- Added checks for the TEST_DATABASE_URL secret and improved error handling for virtual environment creation.
- Enhanced the overall reliability and clarity of the testing process in the CI pipeline.
2026-03-24 12:35:50 -05:00
b750c35522 Add backend test job to CI workflow
- Introduced a new job in the CI workflow to run backend tests before the build process.
- Configured Python environment and installed dependencies from the backend requirements.
- Added a check for the TEST_DATABASE_URL secret to ensure it is defined before running tests.
- The test job must pass for the build job to execute, enhancing the reliability of the CI pipeline.
2026-03-24 12:33:21 -05:00
e5ad69bcdf feat: add workflow dispatch inputs for manual deployment options 2026-02-09 13:19:39 -06:00
27d9625bd0 Implement automatic versioning and display in the application
- Added a step in the CI/CD pipeline to generate a version based on the branch and commit history.
- Updated Dockerfile to accept the application version as an argument.
- Modified the configuration to retrieve the application version from the environment variable.
- Created a new API endpoint to expose the application version.
- Added a new Svelte component to display the application version in the UI.
2026-02-05 09:58:35 -06:00
0d43ea5e0b Update deployment commands to use production Docker Compose file 2026-02-05 00:16:14 -06:00
23cb9b89d0 Update deployment path for development server in build workflow 2026-02-05 00:13:46 -06:00
8ebaf88f0c Fix SSH command to accept new host keys during deployment 2026-02-05 00:11:43 -06:00
b3c1e58fcf Fix quoting in SSH command for Docker login in development deployment 2026-02-05 00:10:32 -06:00
75c62fc62b Fix escaping of secrets in deployment command for development server 2026-02-05 00:09:06 -06:00
322f052860 Add deployment step for development environment and clean up invoice report API code 2026-02-05 00:04:26 -06:00
5d024487c1 Actualizar .gitea/workflows/build.yml 2026-01-24 00:46:28 +00:00
953150bf8f Actualizar .gitea/workflows/build.yml 2026-01-24 00:44:46 +00:00
ae7b84fce6 Actualizar .gitea/workflows/build.yml 2026-01-24 00:39:47 +00:00
f6961b7078 add: create build workflow for production and Harbor deployment 2026-01-22 17:58:35 -06:00