Agrego test e2e para validar nombre de cliente. #68
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: ci | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
tests: | |
name: tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- name: Install playwright | |
run: playwright install | |
- name: Run static test | |
run: ruff check | |
- name: Run unit and integration tests | |
run: coverage run --source="./app" --omit="./app/migrations/**" manage.py test app | |
- name: Check coverage | |
run: coverage report --fail-under=77 | |
- name: Run e2e tests | |
run: python manage.py test functional_tests |