mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-25 05:01:01 +02:00
Getting tests to work
This commit is contained in:
parent
1dc4a4643f
commit
508d09c4cb
1 changed files with 27 additions and 10 deletions
37
.github/workflows/pull-request.yaml
vendored
37
.github/workflows/pull-request.yaml
vendored
|
|
@ -37,32 +37,49 @@ jobs:
|
||||||
|
|
||||||
- name: Setup packages
|
- name: Setup packages
|
||||||
run: make update-package-versions VERSION=1.2.999
|
run: make update-package-versions VERSION=1.2.999
|
||||||
- run: which pip
|
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
run: make packages VERSION=1.2.999
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
make packages VERSION=1.2.999
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: pip install dist/trustgraph_base-1.2.999.tar.gz dist/trustgraph_cli-1.2.999.tar.gz dist/trustgraph_flow-1.2.999.tar.gz dist/trustgraph_bedrock-1.2.999.tar.gz dist/trustgraph_vertexai-1.2.999.tar.gz
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
pip install dist/trustgraph_base-1.2.999.tar.gz dist/trustgraph_cli-1.2.999.tar.gz dist/trustgraph_flow-1.2.999.tar.gz dist/trustgraph_bedrock-1.2.999.tar.gz dist/trustgraph_vertexai-1.2.999.tar.gz
|
||||||
|
|
||||||
- name: Install some stuff
|
- name: Install some stuff
|
||||||
run: pip install pytest pytest-cov pytest-asyncio pytest-mock testcontainers
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
pip install pytest pytest-cov pytest-asyncio pytest-mock
|
||||||
|
|
||||||
- name: Pre-test test
|
- name: Pre-test test
|
||||||
run: python -c 'import trustgraph.base;print(dir(trustgraph.base))'
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
python -c 'import trustgraph.base;print(dir(trustgraph.base))'
|
||||||
|
|
||||||
- name: Pre-test test 2
|
- name: Pre-test test 2
|
||||||
run: python -c 'import trustgraph.schema;print(dir(trustgraph.schema))'
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
python -c 'import trustgraph.schema;print(dir(trustgraph.schema))'
|
||||||
|
|
||||||
- name: Pre-test test 3
|
- name: Pre-test test 3
|
||||||
run: python -c 'import trustgraph.model;print(dir(trustgraph.model))'
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
python -c 'import trustgraph.model;print(dir(trustgraph.model))'
|
||||||
|
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: python -m pytest tests/unit
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
python -m pytest tests/unit
|
||||||
|
|
||||||
- name: Integration tests (cut the out the long-running tests)
|
- name: Integration tests (cut the out the long-running tests)
|
||||||
run: python -m pytest tests/integration -m 'not slow'
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
python -m pytest tests/integration -m 'not slow'
|
||||||
|
|
||||||
- name: Contract tests
|
- name: Contract tests
|
||||||
run: python -m pytest tests/contract
|
run: |
|
||||||
|
. env/bin/activate
|
||||||
|
python -m pytest tests/contract
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue