fix/ci-workflows (#1997)

* add pytest and pytest-cov

* add timeout; update make command usages
This commit is contained in:
Akash Jain 2022-01-04 12:49:22 +05:30 committed by GitHub
parent 7382798d8e
commit 348e23ca6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -32,20 +32,20 @@ jobs:
distribution: 'adopt'
- name: Start Server and Ingest Sample Data
run: ./docker/run_local_docker.sh
timeout-minutes: 20
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Ubuntu related dependencies
- name: Install Ubuntu dependencies
run: |
sudo apt-get install -y libsasl2-dev unixodbc-dev python3-venv
- name: Install Python & Openmetadata related dependencies
- name: Install open-metadata dependencies
run: |
python3 -m venv env
source env/bin/activate
make install install_test
pip install pytest pytest-cov
- name: Run Integration Tests
make install_test install_dev generate install
- name: Run Python Integration Tests
run: |
source env/bin/activate
make run_ometa_integration_tests

View File

@ -44,6 +44,7 @@ jobs:
- name: Start Server and Ingest Sample Data
run: ./docker/run_local_docker.sh
timeout-minutes: 20
- name: Run Page Tests
run: mvn clean test -Dtest="org.openmetadata.catalog.selenium.pages.**.*.java" -DfailIfNoTests=false

View File

@ -2,4 +2,6 @@ black
isort
pre-commit
pylint
pytest
pytest-cov
faker