mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-02 20:35:25 +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
|
||||
env:
|
||||
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
||||
run: ./docker/run_local_docker.sh
|
||||
run: ./docker/run_local_docker.sh no-ui
|
||||
timeout-minutes: 30
|
||||
|
||||
- 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
|
||||
env:
|
||||
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
||||
run: ./docker/run_local_docker.sh
|
||||
run: ./docker/run_local_docker.sh no-ui
|
||||
timeout-minutes: 30
|
||||
|
||||
- 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
|
||||
env:
|
||||
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
||||
run: ./docker/run_local_docker.sh
|
||||
run: ./docker/run_local_docker.sh no-ui
|
||||
timeout-minutes: 30
|
||||
|
||||
- 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
|
||||
env:
|
||||
INGESTION_DEPENDENCY: "airflow-container,sample-data,elasticsearch"
|
||||
run: ./docker/run_local_docker.sh
|
||||
run: ./docker/run_local_docker.sh no-ui
|
||||
timeout-minutes: 30
|
||||
|
||||
- name: Run Python Tests & Record Coverage
|
||||
|
@ -11,9 +11,16 @@
|
||||
# limitations under the License.
|
||||
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
if [[ $1 == "no-ui" ]]; then
|
||||
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
|
||||
echo "Prepare Docker volume for the operators"
|
||||
fi
|
||||
|
||||
echo "Prepare Docker volume for the operators"@
|
||||
cd docker/local-metadata
|
||||
echo "Starting Local Docker Containers"
|
||||
|
||||
|
@ -39,11 +39,6 @@
|
||||
<artifactId>common</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.open-metadata</groupId>
|
||||
<artifactId>openmetadata-ui</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
@ -95,6 +90,13 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.open-metadata</groupId>
|
||||
<artifactId>openmetadata-ui</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>rpm</id>
|
||||
@ -170,6 +172,16 @@
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>only-backend</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>onlyBackend</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
</dependencies>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
|
Loading…
x
Reference in New Issue
Block a user