Redact RegisterUserView and README.md #5
Workflow file for this run
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: Django Test | |
on: | |
pull_request: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 # Updated version | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --user pipx | |
python -m pipx ensurepath | |
export PATH="$HOME/.local/bin:$PATH" | |
pipx install poetry | |
poetry install | |
- name: Run tests with coverage | |
run: | | |
poetry run coverage run manage.py test | |
- name: Display coverage report | |
run: | | |
poetry run coverage report | |
- name: Generate coverage reports | |
run: | | |
poetry run coverage xml | |
poetry run coverage html | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-html-report | |
path: htmlcov/ |