Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
- 'tests/**'
workflow_dispatch:

permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/scheduled-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- cron: '0 9 * * 1'
workflow_dispatch:

permissions:
contents: read

jobs:
scheduled-pre-commit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -47,17 +50,20 @@ jobs:
- name: Run markdown checks
id: markdown
run: |
pymarkdownlnt scan docs > markdown_output.txt 2>&1
EXIT_CODE=$?
EXIT_CODE=0
pymarkdownlnt scan docs > markdown_output.txt 2>&1 || EXIT_CODE=$?

OUTPUT=$(cat markdown_output.txt)
echo "output<<EOF" >> $GITHUB_OUTPUT
echo "$OUTPUT" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "$OUTPUT"
{
echo "output<<EOF"
echo "$OUTPUT"
echo "EOF"
} >> "$GITHUB_OUTPUT"

if [ $EXIT_CODE -eq 0 ]; then
echo "status=success" >> $GITHUB_OUTPUT
if [ "$EXIT_CODE" -eq 0 ]; then
echo "status=success" >> "$GITHUB_OUTPUT"
else
echo "status=failed" >> $GITHUB_OUTPUT
echo "status=failed" >> "$GITHUB_OUTPUT"
exit 1
fi
6 changes: 5 additions & 1 deletion .github/workflows/upstream-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- cron: '0 3 * * *'
workflow_dispatch:

permissions:
contents: read

jobs:
drift:
name: Test against guard-core@master
Expand Down Expand Up @@ -56,7 +59,8 @@ jobs:

- name: Force-install the guard-core@master wheel over the resolved one
run: |
wheel=$(ls wheels/guard_core-*.whl | head -n 1)
wheels=(wheels/guard_core-*.whl)
wheel="${wheels[0]}"
uv pip install --python .venv/bin/python --no-deps --force-reinstall "$wheel"

- name: Run the djapi-guard test suite against guard-core@master
Expand Down
Loading