name: Test pull request on: pull_request: permissions: contents: read jobs: test: name: Run tests runs-on: ubuntu-latest steps: - name: Set version run: VERSION=1.2.999 - name: Checkout uses: actions/checkout@v3 - name: Setup packages run: make update-package-versions VERSION=${VERSION} - name: Setup environment run: python3 -m venv env - name: Invoke environment run: . env/bin/activate - name: Install some stuff run: pip install build wheel - name: Build packages run: make packages VERSION=${VERSION} - name: Install packages run: pip install dist/trustgraph_base-${VERSION}.tar.gz dist/trustgraph_cli-${VERSION}.tar.gz dist/trustgraph_flow-${VERSION}.tar.gz dist/trustgraph_bedrock-${VERSION}.tar.gz dist/trustgraph_vertexai-${VERSION}.tar.gz - name: Install some stuff run: pip install pytest pytest-cov pytest-asyncio pytest-mock testcontainers - name: Unit tests run: python3 -m pytest tests/unit - name: Integration tests (cut the out the long-running tests) run: python3 -m pytest tests/integration -m 'not slow' - name: Contract tests run: python3 -m pytest tests/contract