Skip to content

Commit acfa6d4

Browse files
committed
fix mysql setup workflow
1 parent 2a6a7e0 commit acfa6d4

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ jobs:
122122
mysql-root-password: "root"
123123
- name: Run functional tests
124124
run: hatch run functional:all -v
125+
- name: Install MySQL
126+
uses: kayqueGovetri/setup-mysql@v0.0.3
127+
with:
128+
root-password: "mysql"
125129

126130
build-python:
127131
name: Build Python
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
# If you want to clone the repository as part of your setup steps, for example to
23+
# install dependencies, you'll need the `contents: read` permission. If you don't
24+
# clone the repository in your setup steps, Copilot will do this for you automatically
25+
# after the steps complete.
26+
contents: read
27+
28+
# You can define any steps you want, and they will run before the agent starts.
29+
# If you do not check out your code, Copilot will do this for you.
30+
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@v4
33+
- name: Install MySQL
34+
uses: kayqueGovetri/setup-mysql
35+
with:
36+
root-password: "mysql"

docs/src/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ environment variables adjust its behavior:
115115

116116
Database engine to use. See `django.db.backends` for default backends.
117117

118-
**`DB_NAME`** - Default: `:memory:`
118+
**`DB_NAME`** - Default: `/tmp/test_db.sqlite3`
119119

120120
Database name. Adjust for non-SQLite backends.
121121

0 commit comments

Comments
 (0)