Add autofocus attribute to username input #52
Workflow file for this run
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: Run Unit Tests | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| DJANGO_SECRET_KEY: for-testing-only | |
| strategy: | |
| matrix: | |
| python-version: ['3.10'] | |
| services: | |
| redis: | |
| image: redis | |
| # Set health checks to wait until redis has started | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| # Map port 6379 in the container to the workflow environment | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pipenv | |
| pipenv install --deploy --dev | |
| - name: Test with unittest | |
| run: | | |
| pipenv run _app/manage.py test homepage.tests | |
| env: | |
| # Tests are running "locally" while Redis is in a container | |
| REDIS_HOSTNAME: localhost | |
| - name: Run mypy | |
| run: | | |
| pipenv run mypy _app/homepage |