add ci #4
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: | |
branch: [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: python -m playwright install --with-deps firefox | |
- name: Run static test | |
run: ruff check | |
- name: Run unit and integration tests | |
run: python manage.py test app | |
- name: Run e2e tests | |
run: python manage.py test functional_tests | |