Skip to content

fix(sdk): find a user's teamspaces under their personal org #888

fix(sdk): find a user's teamspaces under their personal org

fix(sdk): find a user's teamspaces under their personal org #888

Workflow file for this run

name: CLI
on:
push:
branches: ["main"]
release:
types: ["created"]
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
defaults:
run:
shell: bash
jobs:
cli-tests:
runs-on: ${{ matrix.os }}
if: github.event.pull_request.draft == false
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "macos-14"] # todo: add "windows-2022"
python-version: ["3.12"]
install-extras: ["", "serve"]
timeout-minutes: 10
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: Install package and test dependencies
run: pip install ./python --upgrade -r python/tests/requirements.txt
- name: Re-Install dependencies with `${{ matrix.install-extras }}`
if: ${{ matrix.install-extras != '' }}
run: pip install "./python[${{ matrix.install-extras }}]" --upgrade -r python/tests/requirements.txt
- name: show pip list
run: pip list
- name: Login passthrough
run: lightning login # since we are providing the credentials, this should be a no-op
env:
LIGHTNING_API_KEY: dummy-api-key
- name: Tests
working-directory: python/tests
env: # the following value is just a dummy since the actual http calls are mocked out
LIGHTNING_API_KEY: dummy-api-key
run: |
# NOTE: do not include coverage report here, see: https://github.com/nedbat/coveragepy/issues/1003
coverage run --source lightning_sdk -m pytest cli/ -vv -s
- name: Statistics
working-directory: python/tests
continue-on-error: true
run: |
coverage report
coverage xml
guardian-CLI:
runs-on: ubuntu-latest
needs: cli-tests
if: always() && (github.event_name != 'pull_request' || github.event.pull_request.draft == false)
steps:
- run: echo "${{ needs.cli-tests.result }}"
- name: failing...
if: needs.cli-tests.result == 'failure'
run: exit 1
- name: cancelled or skipped...
if: contains(fromJSON('["cancelled", "skipped"]'), needs.cli-tests.result)
timeout-minutes: 1
run: sleep 90