-
Notifications
You must be signed in to change notification settings - Fork 3
Add CI workflow for backend, frontend, and Docker builds #10
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,71 @@ | ||||||||||
| name: CI | ||||||||||
|
|
||||||||||
| on: | ||||||||||
| push: | ||||||||||
| branches: [main] | ||||||||||
| pull_request: | ||||||||||
| branches: [main] | ||||||||||
|
|
||||||||||
| jobs: | ||||||||||
| backend: | ||||||||||
| runs-on: ubuntu-latest | ||||||||||
| defaults: | ||||||||||
| run: | ||||||||||
| working-directory: backend | ||||||||||
|
|
||||||||||
| steps: | ||||||||||
| - uses: actions/checkout@v4 | ||||||||||
|
|
||||||||||
| - name: Set up Python | ||||||||||
| uses: actions/setup-python@v5 | ||||||||||
| with: | ||||||||||
| python-version: "3.14" | ||||||||||
| cache: pip | ||||||||||
|
|
||||||||||
| - name: Install dependencies | ||||||||||
| run: pip install -r requirements.txt | ||||||||||
|
|
||||||||||
| - name: Run Django checks | ||||||||||
| run: python manage.py check | ||||||||||
| env: | ||||||||||
| DJANGO_DEBUG: "True" | ||||||||||
|
|
||||||||||
| - name: Run tests | ||||||||||
| run: python manage.py test --verbosity=2 | ||||||||||
| env: | ||||||||||
| DJANGO_DEBUG: "True" | ||||||||||
|
|
||||||||||
|
Comment on lines
+33
to
+37
|
||||||||||
| - name: Run tests | |
| run: python manage.py test --verbosity=2 | |
| env: | |
| DJANGO_DEBUG: "True" |
Copilot
AI
Feb 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lint step runs npx eslint src/ but there is no ESLint configuration file in the frontend directory. ESLint 9.x requires an explicit configuration file (eslint.config.js or eslint.config.mjs). Without a configuration file, this step will fail with "No files matching the pattern were found" or a similar error. Either add an ESLint configuration file or remove this step from the CI workflow.
| - name: Lint | |
| run: npx eslint src/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pip cache configuration may not work correctly because the working directory is set to
backend, but thecache: pipoption in setup-python looks forrequirements.txtin the repository root by default. Consider addingcache-dependency-path: backend/requirements.txtto ensure pip caching works properly.