You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: Lint
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
permissions:
checks: write
contents: write
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5https://github.com/science-for-democracy/mapof/runs/33058591708
with:
python-version: '3.12'
- name: Install Python dependencies
run: pip install black
- name: Run linters
uses: wearerequired/lint-action@v2.3.0
with:
black: true
continue_on_error: false
And after I do a test PR (here link), the action correctly recognizes issues and builds an annotation
However, the link "see the allocation in the file changed" goes to a diff-view in where no annotation appears:
Is it because the path of the annotated file starts with /home/runner/? Could you help me in configuring lint-action to actually see the annotations? I have tried some solutions (giving write permissions for pull-requests or playing with continue-on-error) but I'm stuck.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is how my configurations looks:
And after I do a test PR (here link), the action correctly recognizes issues and builds an annotation
However, the link "see the allocation in the file changed" goes to a diff-view in where no annotation appears:
Is it because the path of the annotated file starts with
/home/runner/
? Could you help me in configuring lint-action to actually see the annotations? I have tried some solutions (giving write permissions for pull-requests or playing with continue-on-error) but I'm stuck.Beta Was this translation helpful? Give feedback.
All reactions