update allowed hosts #709
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
name: Test Application | |
on: [push] | |
env: | |
MAILGUN_API_KEY: ${{ secrets.MAILGUN_API_KEY }} | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
jobs: | |
django-tests: | |
name: 'Run unit tests' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the stack | |
run: docker-compose run web python3 manage.py test | |
coverage: | |
name: 'Check test coverage' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the stack | |
run: docker-compose build | |
- name: Create coverage XML report | |
run: docker-compose run web /bin/bash -c "coverage run --source='.' manage.py test && coverage xml" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: hiss/coverage.xml | |
name: codecov-umbrella | |
fail_ci_if_error: true |