diff --git a/.github/workflows/check_example.yml b/.github/workflows/check_example.yml new file mode 100644 index 0000000..3231cfe --- /dev/null +++ b/.github/workflows/check_example.yml @@ -0,0 +1,26 @@ +name: Check library + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "great_ai/**" + - ".github/workflows/*" + +jobs: + lint: + uses: ./.github/workflows/generic-lint-python.yml + with: + path_to_project: examples/complex + + sonar: + needs: lint + uses: ./.github/workflows/generic-sonarqube-python.yml + with: + project_name: great_ai + path_to_project: examples/complex + secrets: + sonar_token: ${{ secrets.SONAR_TOKEN }} + sonar_host: ${{ secrets.SONAR_HOST_URL }} diff --git a/.github/workflows/check_great_ai.yml b/.github/workflows/check_great_ai.yml index 57e953a..0ba1c47 100644 --- a/.github/workflows/check_great_ai.yml +++ b/.github/workflows/check_great_ai.yml @@ -6,21 +6,21 @@ on: branches: - main paths: - - "projects/great_ai/**" + - "great_ai/**" - ".github/workflows/*" jobs: lint: uses: ./.github/workflows/generic-lint-python.yml with: - path_to_project: projects/great_ai + path_to_project: great_ai sonar: needs: lint uses: ./.github/workflows/generic-sonarqube-python.yml with: project_name: great_ai - path_to_project: projects/great_ai + path_to_project: great_ai secrets: sonar_token: ${{ secrets.SONAR_TOKEN }} sonar_host: ${{ secrets.SONAR_HOST_URL }}