-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mysqlclient to requirements.txt Remove mysql from django CI workflow Fix python 3 version number in django workflow See actions/setup-python#160 Don't drop DB in CI workflow Remove mysqlclient and mysql from django CI workflow
- Loading branch information
Showing
3 changed files
with
5 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,11 @@ jobs: | |
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.8, 3.9, 3.10] | ||
db: [postgres, mysql] | ||
python-version: [3.8, 3.9, '3.10'] | ||
db: [postgres] | ||
include: | ||
- db: postgres | ||
db_port: 5432 | ||
- db: mysql | ||
db_port: 3306 | ||
services: | ||
postgres: | ||
image: postgres:16 | ||
|
@@ -34,20 +32,6 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
|
||
mysql: | ||
image: mysql:8 | ||
ports: | ||
- 3306:3306 | ||
env: | ||
MYSQL_ROOT_PASSWORD: SpYkxYy1dMmo7Bk | ||
MYSQL_USER: permagate | ||
MYSQL_PASSWORD: SpYkxYy1dMmo7Bk | ||
options: | ||
--health-cmd "mysqladmin ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 3 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -58,8 +42,8 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run Tests | ||
env: | ||
DATABASE_URL: ${{ matrix.db }}://permagate:[email protected]:${{ matrix.db_port }}/permagate | ||
- name: Run Tests | ||
run: | | ||
python manage.py test | ||
python manage.py test --keepdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Django==4.2.3 | ||
django-environ==0.10.0 | ||
psycopg2==2.9.6 | ||
psycopg2==2.9.6 |