mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-24 22:18:41 +00:00
fix/ci-workflows (#1997)
* add pytest and pytest-cov * add timeout; update make command usages
This commit is contained in:
parent
7382798d8e
commit
348e23ca6f
10
.github/workflows/py-integration-tests.yml
vendored
10
.github/workflows/py-integration-tests.yml
vendored
@ -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
|
||||
|
||||
1
.github/workflows/selenium-tests.yml
vendored
1
.github/workflows/selenium-tests.yml
vendored
@ -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
|
||||
|
||||
@ -2,4 +2,6 @@ black
|
||||
isort
|
||||
pre-commit
|
||||
pylint
|
||||
pytest
|
||||
pytest-cov
|
||||
faker
|
||||
Loading…
x
Reference in New Issue
Block a user