mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-03 12:53:53 +00:00
Reduce the CI times for py-tests (#6352)
* Testing if we can reduce the CI times * Update POM and run_local_docker script
This commit is contained in:
parent
fdfdaa14aa
commit
30ff470922
2
.github/workflows/py-tests-3_10.yml
vendored
2
.github/workflows/py-tests-3_10.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
|||||||
- name: Start Server and Ingest Sample Data
|
- name: Start Server and Ingest Sample Data
|
||||||
env:
|
env:
|
||||||
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
||||||
run: ./docker/run_local_docker.sh
|
run: ./docker/run_local_docker.sh no-ui
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
- name: Run Python Tests & record coverage
|
- name: Run Python Tests & record coverage
|
||||||
|
2
.github/workflows/py-tests-3_7.yml
vendored
2
.github/workflows/py-tests-3_7.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
|||||||
- name: Start Server and Ingest Sample Data
|
- name: Start Server and Ingest Sample Data
|
||||||
env:
|
env:
|
||||||
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
||||||
run: ./docker/run_local_docker.sh
|
run: ./docker/run_local_docker.sh no-ui
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
- name: Run Python Tests
|
- name: Run Python Tests
|
||||||
|
2
.github/workflows/py-tests-3_8.yml
vendored
2
.github/workflows/py-tests-3_8.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
|||||||
- name: Start Server and Ingest Sample Data
|
- name: Start Server and Ingest Sample Data
|
||||||
env:
|
env:
|
||||||
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
||||||
run: ./docker/run_local_docker.sh
|
run: ./docker/run_local_docker.sh no-ui
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
- name: Run Python Tests
|
- name: Run Python Tests
|
||||||
|
2
.github/workflows/py-tests-3_9.yml
vendored
2
.github/workflows/py-tests-3_9.yml
vendored
@ -66,7 +66,7 @@ jobs:
|
|||||||
- name: Start Server and Ingest Sample Data
|
- name: Start Server and Ingest Sample Data
|
||||||
env:
|
env:
|
||||||
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
||||||
run: ./docker/run_local_docker.sh
|
run: ./docker/run_local_docker.sh no-ui
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
- name: Run Python Tests & Record Coverage
|
- name: Run Python Tests & Record Coverage
|
||||||
|
@ -11,9 +11,16 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
echo "Maven Build - Skipping Tests"
|
|
||||||
cd ../ && mvn -DskipTests clean package
|
if [[ $1 == "no-ui" ]]; then
|
||||||
echo "Prepare Docker volume for the operators"
|
echo "Maven Build - Skipping Tests and UI"
|
||||||
|
cd ../ && mvn -DskipTests -DonlyBackend clean package -pl !openmetadata-ui
|
||||||
|
else
|
||||||
|
echo "Maven Build - Skipping Tests"
|
||||||
|
cd ../ && mvn -DskipTests clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Prepare Docker volume for the operators"@
|
||||||
cd docker/local-metadata
|
cd docker/local-metadata
|
||||||
echo "Starting Local Docker Containers"
|
echo "Starting Local Docker Containers"
|
||||||
|
|
||||||
|
@ -39,11 +39,6 @@
|
|||||||
<artifactId>common</artifactId>
|
<artifactId>common</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.open-metadata</groupId>
|
|
||||||
<artifactId>openmetadata-ui</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@ -95,6 +90,13 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.open-metadata</groupId>
|
||||||
|
<artifactId>openmetadata-ui</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>rpm</id>
|
<id>rpm</id>
|
||||||
@ -170,6 +172,16 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>only-backend</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>onlyBackend</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<dependencies>
|
||||||
|
</dependencies>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user