use interrogate directly and not the action
@@ -29,11 +29,15 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- - uses: JackMcKew/python-interrogate-check@main
+ - name: Setup python
+ uses: actions/setup-python@v2
with:
- path: 'avalanche'
- fail-under: 1
- badge-location: 'interrogate_badge.svg'
+ python-version: 3.8
+ architecture: x64
+ - name: Install and use interrogate
+ run: |
+ pip install interrogate
+ interrogate avalanche -vv --generate-badge interrogate-badge.svg -o documentation-coverage.txt
- name: clone reports repository
# if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
uses: actions/checkout@v2
@@ -46,6 +50,7 @@ jobs:
# if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
run: |
mv interrogate_badge.svg avalanche-reports/badge/
+ mv documentation-coverage.txt avalanche-reports/docstring_coverage/
cd avalanche-reports
git config --local user.email ${{ secrets.EMAIL }}
git config --local user.name ${{ secrets.NAME }}
