Update paths

This commit is contained in:
Andras Schmelczer 2022-05-26 21:03:27 +02:00
parent 09a3d0a7dd
commit 5cc96172af
No known key found for this signature in database
GPG key ID: 39260B5B0614A13E
2 changed files with 29 additions and 3 deletions

26
.github/workflows/check_example.yml vendored Normal file
View file

@ -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 }}

View file

@ -6,21 +6,21 @@ on:
branches: branches:
- main - main
paths: paths:
- "projects/great_ai/**" - "great_ai/**"
- ".github/workflows/*" - ".github/workflows/*"
jobs: jobs:
lint: lint:
uses: ./.github/workflows/generic-lint-python.yml uses: ./.github/workflows/generic-lint-python.yml
with: with:
path_to_project: projects/great_ai path_to_project: great_ai
sonar: sonar:
needs: lint needs: lint
uses: ./.github/workflows/generic-sonarqube-python.yml uses: ./.github/workflows/generic-sonarqube-python.yml
with: with:
project_name: great_ai project_name: great_ai
path_to_project: projects/great_ai path_to_project: great_ai
secrets: secrets:
sonar_token: ${{ secrets.SONAR_TOKEN }} sonar_token: ${{ secrets.SONAR_TOKEN }}
sonar_host: ${{ secrets.SONAR_HOST_URL }} sonar_host: ${{ secrets.SONAR_HOST_URL }}