Cleanup: docstrings in the lightly/data subpackage #511
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install API Dependencies Only | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
detect-code-changes: | |
name: Detect Code Changes | |
runs-on: ubuntu-latest | |
outputs: | |
run-tests: ${{ steps.filter.outputs.run-tests }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
list-files: shell | |
filters: | | |
run-tests: | |
- '!docs/**' | |
- '!examples/**' | |
- '!benchmarks/**' | |
test: | |
name: Test | |
needs: detect-code-changes | |
if: needs.detect-code-changes.outputs.run-tests == 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set Up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Set Up Environment | |
run: | | |
make install-uv reset-venv | |
source .venv/bin/activate | |
make install-api-only | |
- name: Test API Client | |
run: | | |
source .venv/bin/activate | |
# Test if ApiWorkflowClient can be created. | |
export LIGHTLY_SERVER_LOCATION="localhost:-1" | |
python -c "from lightly.api import ApiWorkflowClient; ApiWorkflowClient(token='abc')" |