diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 1aad2e9..f58c62c 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -2,7 +2,7 @@ name: Checks on: pull_request: - branches: [main] + branches: [Staging] jobs: test-lint: diff --git a/.github/workflows/test-and-lint.yml b/.github/workflows/test-and-lint.yml index 58831b8..641c84f 100644 --- a/.github/workflows/test-and-lint.yml +++ b/.github/workflows/test-and-lint.yml @@ -19,4 +19,10 @@ jobs: uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USER }} - password: ${{ secrets.DOCKERHUB_TOKEN }} \ No newline at end of file + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Checkout + 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: Python flake8 + run: docker compose run --rm app sh -c "flake8" \ No newline at end of file diff --git a/README.md b/README.md index 98bb3cc..c6bd5eb 100644 --- a/README.md +++ b/README.md @@ -207,3 +207,5 @@ Or find them below: - [Build a Backend REST API with Python & Django REST Framework - Beginner](https://londonapp.dev/c1) - [Build a Backend REST API with Python & Django REST Framework - Advanced](https://londonapp.dev/c2) - [Deploy a Serverless Django App on Google App Engine](https://londonapp.dev/c5) + +-- Testing PR \ No newline at end of file