Skip to content

Commit 6306351

Browse files
MayurMayur
authored andcommitted
added seperate 3.10pytest
1 parent 4e22b74 commit 6306351

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Copyright 2021 Collate
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS,
8+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
# See the License for the specific language governing permissions and
10+
# limitations under the License.
11+
12+
name: py-tests-3.10
13+
on:
14+
push:
15+
branches: [main]
16+
paths:
17+
- ingestion/**
18+
- openmetadata-service/**
19+
pull_request_target:
20+
branches: [main]
21+
paths:
22+
- ingestion/**
23+
- openmetadata-service/**
24+
25+
jobs:
26+
py-run-tests:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
with:
32+
ref: ${{ github.event.pull_request.head.sha }}
33+
34+
- name: Set up JDK 11
35+
uses: actions/setup-java@v2
36+
with:
37+
java-version: '11'
38+
distribution: 'adopt'
39+
40+
- name: Set up Python 3.10
41+
uses: actions/setup-python@v2
42+
with:
43+
python-version: "3.10"
44+
45+
- name: Install Ubuntu dependencies
46+
run: |
47+
sudo apt-get install -y unixodbc-dev python3-venv librdkafka-dev gcc libsasl2-dev build-essential libssl-dev libffi-dev \
48+
unixodbc-dev libevent-dev python3-dev
49+
- name: Generate models
50+
run: |
51+
python3 -m venv env
52+
source env/bin/activate
53+
sudo make install_antlr_cli
54+
make install_dev generate
55+
- name: Install open-metadata dependencies
56+
run: |
57+
source env/bin/activate
58+
make install_all install_test
59+
- name: Start Server and Ingest Sample Data
60+
env:
61+
INGESTION_DEPENDENCY: "mysql,elasticsearch"
62+
run: ./docker/run_local_docker.sh -m no-ui
63+
timeout-minutes: 30
64+
65+
- name: Run Python Tests & record coverage
66+
run: |
67+
source env/bin/activate
68+
make coverage
69+

0 commit comments

Comments
 (0)