Allow impersonators to always view staff pages (if they are staff) #164
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 | |
on: | |
push: {} | |
pull_request: {} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- run: poetry install | |
- working-directory: tests | |
run: poetry run coverage run -m pytest "$@" | |
- working-directory: tests | |
run: | | |
echo "## Pytest coverage" >> $GITHUB_STEP_SUMMARY | |
poetry run coverage report --skip-empty --format markdown >> $GITHUB_STEP_SUMMARY | |
- run: ./scripts/ruff --check |