Fix script on CI
This commit is contained in:
committed by
Benoit Marty
parent
b2c570df03
commit
463ce89a8a
9
.github/workflows/quality.yml
vendored
9
.github/workflows/quality.yml
vendored
@@ -38,6 +38,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Use JDK 17
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
||||||
|
java-version: '17'
|
||||||
|
- name: Configure gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
with:
|
||||||
|
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import subprocess
|
|||||||
def getProjectDependencies():
|
def getProjectDependencies():
|
||||||
print("=> Computing dependencies...")
|
print("=> Computing dependencies...")
|
||||||
command = subprocess.run(
|
command = subprocess.run(
|
||||||
["./gradlew :app:dependencies |grep project"],
|
["./gradlew :app:dependencies"],
|
||||||
shell=True,
|
shell=True,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
text=True,
|
text=True,
|
||||||
@@ -16,7 +16,7 @@ def getProjectDependencies():
|
|||||||
# Remove the trailing info like "(*)"
|
# Remove the trailing info like "(*)"
|
||||||
result = list(map(lambda x: x.split(" (")[0], data.split("\n")))
|
result = list(map(lambda x: x.split(" (")[0], data.split("\n")))
|
||||||
# Filter out comment line
|
# Filter out comment line
|
||||||
result = list(filter(lambda x: "---" in x, result))
|
result = list(filter(lambda x: "--- project" in x, result))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user