Project-Stage-Academy / UA-1131_Forum-PS

0 stars 0 forks source link

Create project_test_coverage.yml #51

Closed mehalyna closed 7 months ago

mehalyna commented 7 months ago

Workflow sets up the environment, installs dependencies, runs Django tests with coverage, generates a coverage report, and then uploads the coverage data to Codecov

YanZhylavy commented 7 months ago

As far as I can see, CI failed due to the inability to configure the logger, which takes settings such as the log file name and the logging level from the .env environment variables file. Will this be a problem in the future? The same question also applies to connecting to the database.

mehalyna commented 7 months ago

For sure, it'll cause the problem. Now I'm thinking over the setup of environment-specific settings files or environment variables to differentiate between production and CI environments. Consequently, this approach might allow us to use file logging in production and console logging in CI. I hope 🤔