-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#2024-03] Configure Github Actions for Django project with PostgreSQL #91
Conversation
- Use Python 3.11 container - Update PostgreSQL version to 16.2-bookworm - Set PostgreSQL connection details in environment variables - Configure service to wait for PostgreSQL availability on start - Run Django collectstatic command - Execute Django tests for afbcore app
Cache system packages and python dependencies Run database migrations before running tests Improve efficiency for repeated workflow runs Ensure consistent state for test environment
Also only run on API code changes Restrict workflow to API dir changes Comment out system package and pip caching No newline at end of file
…com:AnimalFoodBank/afb-requests into delano/2024-03-22-github-actions
re: "ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? Error: Process completed with exit code 1."
Fix pip audit job name in workflow Add pnpm install step before Nuxt build Remove extra Django install in workflow Rename collectstatic job in workflow Capitalize Django in requirements.txt
- Migrate to Django 5.0.3 to leverage new features and improvements - Update drf-spectacular dependency to use local Swagger UI and Redoc instead of CDN
PR Description updated to latest commit (7be61b7) |
PR Agent Walkthrough🤖 Welcome to the PR Agent, an AI-powered tool for automated pull request analysis, feedback, suggestions and more. Here is a list of tools you can use to interact with the PR Agent:
(1) Note that each tool be triggered automatically when a new PR is opened, or called manually by commenting on a PR. (2) Tools marked with [*] require additional parameters to be passed. For example, to invoke the |
User description
Type
Enhancement, Tests
Changes walkthrough
audit.yml
Add UI app build, test and audit steps
.github/workflows/audit.yml
django.yml
Configure Django workflow with PostgreSQL
.github/workflows/django.yml