Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
timeout-minutes: 15
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -53,9 +54,17 @@
pip install tox==4.26.0

- name: Run tox
run: tox -e "${MATRIX_NAME}"
env:
MATRIX_NAME: ${{ matrix.name }}
run: tox -e ${{ matrix.name }}
Comment thread Fixed
# run: tox -e "${MATRIX_NAME}"
# env:
# MATRIX_NAME: ${{ matrix.name }}

- name: Upload SARIF report into the GitHub repo code scanning
Comment thread
kingbuzzman marked this conversation as resolved.
Outdated
if: contains(matrix.name, 'linting')
uses: github/codeql-action/upload-sarif@v3
Comment thread Fixed
with:
sarif_file: zizmor.sarif
category: zizmor

- name: Report coverage
if: contains(matrix.name, 'coverage')
Expand Down
1 change: 1 addition & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ rules:
policies:
actions/*: ref-pin
codecov/codecov-action: ref-pin
github/*: ref-pin
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ _build
*.egg
# autogenerated by setuptools-scm
/pytest_django/_version.py
zizmor.sarif
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ commands =

[testenv:linting]
dependency_groups = linting
allowlist_externals = sh
commands =
ruff check --diff {posargs:pytest_django pytest_django_test tests}
ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests}
mypy {posargs:pytest_django pytest_django_test tests}
zizmor --persona=pedantic .github/workflows/deploy.yml .github/workflows/main.yml
sh -c "zizmor --persona=pedantic --format sarif .github/workflows/deploy.yml .github/workflows/main.yml > zizmor.sarif"
Comment thread
kingbuzzman marked this conversation as resolved.
Outdated

[testenv:doc8]
basepython = python3
Expand Down