Skip to content

test: Debug Namespace #55

test: Debug Namespace

test: Debug Namespace #55

Workflow file for this run

name: Test
on:
push:
branches-ignore:
- main
jobs:
build-providers:
uses: ./.github/workflows/build-providers.yaml
pytest:
runs-on: ubuntu-latest
needs: build-providers
strategy:
matrix:
python: ["3.11"]
steps:
# Restore Provider Packages
- uses: actions/checkout@v4
- uses: actions/cache/restore@v3
id: cache
with:
path: build/random/dist/CallyProvidersRandom-3.6.0.tar.gz
key: cally-provider-random-3.6.0
# Install Node - CDKTF requirement
- uses: actions/setup-node@v4
with:
node-version: "20"
# Cally Install
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install Provider Pacakge
run: pip install build/random/dist/CallyProvidersRandom-3.6.0.tar.gz
- name: Install Cally test dependencies
run: pip install .[test]
- name: Debugging steps
run: |
la -lah $Python_ROOT_DIR/lib/python3.11/site-packages/cally/providers/ || true
python -c 'import pkgutil; print(1 if pkgutil.find_loader("cally.providers.random") else 0)'
python -c 'import pkgutil; print(1 if pkgutil.find_loader("cally.providers") else 0)'
# Run Tests
- name: Run Pytest
run: pytest -v