(feat) create endpoint for return project analyzer combined results #10
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: Project analysis | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
analyse-project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout tools repository | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository_owner }}/jwizard-tools | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
- name: Install requirements | |
run: pip install -r requirements.txt | |
- name: Grand permissions | |
run: chmod +x exec/run-with-config | |
- name: Run project analyzer | |
run: exec/run-with-config project_analyzer \ | |
"${{ secrets.CONFIG_FILE_CONTENT }}" \ | |
--repo ${{ github.repository }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |