adding db service #13
This file contains hidden or 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
| name: CI Checks | |
| on: [push] | |
| jobs: | |
| test-lint: | |
| name: Test and Lint | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v1 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USER }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Run Tests | |
| run: docker compose run --rm app sh -c "python manage.py test" | |
| - name: Run Linting | |
| run: docker compose run --rm app sh -c "flake8" | |