From f204c3c9d43b8cc51947c20859744552a9f89e58 Mon Sep 17 00:00:00 2001 From: Murilo Rosa Date: Tue, 19 Mar 2024 22:07:33 +0000 Subject: [PATCH] test ci --- .github/workflows/ci.yml | 17 ++++++++++------- development_notebook/2024-03-19.md | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 development_notebook/2024-03-19.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91873fc..284e69d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,16 +38,19 @@ jobs: runs-on: ubuntu-latest services: - postgres: - image: postgres:15 - ports: - - 5432:5432 + mysql: + image: mysql:latest env: - POSTGRES_PASSWORD: postgres + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: mydatabase + MYSQL_USER: myuser + MYSQL_PASSWORD: mypassword + ports: + - 3306:3306 env: - # postgres://user:password@host:port/database - DATABASE_URL: 'postgres://postgres:postgres@localhost:5432/postgres' + # mysql://user:password@host:port/database + DATABASE_URL: 'mysql://myuser:mypassword@localhost:3306/mydatabase' steps: - name: Checkout Code Repository diff --git a/development_notebook/2024-03-19.md b/development_notebook/2024-03-19.md new file mode 100644 index 0000000..0e5bd99 --- /dev/null +++ b/development_notebook/2024-03-19.md @@ -0,0 +1,27 @@ +# Current State + +* Project has been fully configured from cookiecutter-django using MySQL. +* Deployed to production at [negligentoctopus.pythonanywhere.com](negligentoctopus.pythonanywhere.com). + +Core models are being defined and added to the django-admin interface to be tested. +Account and transactions are implemented with balance as prefix-sum. + +## Update + + +# Today + +* Add testing - Ask ChatGPT for intro to how to test django models + ! Remember - requires change to lint in CI/CD for testing to work + +## Work Log +__InProgress__ + +__ToDo__ +* Add testing + +__Done__ + +__Discarded__ + +# To Do