From 5603f2df352e9d1288ed0bbe592f70f129c5bc69 Mon Sep 17 00:00:00 2001 From: Mark Winterbottom Date: Sun, 27 Apr 2025 15:13:18 +0100 Subject: [PATCH 1/4] test --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d2cd46959..5685b22da 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,5 @@ This is the code for the second edition of the course that was released in 2022. Course code for: [Build a Backend REST API with Python & Django - Advanced](https://londonapp.dev/c2) + +test From bdec2f8a384f7dfae0a6cd62f4df6291d7c8d28b Mon Sep 17 00:00:00 2001 From: Mark Winterbottom Date: Sun, 27 Apr 2025 15:15:02 +0100 Subject: [PATCH 2/4] update runner --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index f96cca222..d46076e9f 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -6,7 +6,7 @@ on: [push] jobs: test-lint: name: Test and Lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Login to Docker Hub uses: docker/login-action@v1 From 16133b553311cfadc790abb67c181c2bb303c7fb Mon Sep 17 00:00:00 2001 From: Mark Winterbottom Date: Sun, 27 Apr 2025 15:29:17 +0100 Subject: [PATCH 3/4] fix docker compose --- .github/workflows/checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d46076e9f..b79fa2525 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -16,6 +16,6 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Test - run: docker-compose run --rm app sh -c "python manage.py wait_for_db && python manage.py test" + run: docker compose run --rm app sh -c "python manage.py wait_for_db && python manage.py test" - name: Lint - run: docker-compose run --rm app sh -c "flake8" + run: docker compose run --rm app sh -c "flake8" From 7d33ddb8a91f781e041eae172a80d737abdc2c97 Mon Sep 17 00:00:00 2001 From: Mark Winterbottom Date: Sun, 27 Apr 2025 15:30:03 +0100 Subject: [PATCH 4/4] updated --- .github/workflows/checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index b79fa2525..466f67219 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Test run: docker compose run --rm app sh -c "python manage.py wait_for_db && python manage.py test" - name: Lint