Skip to content

Merge pull request #2062 from transformerlab/fix/credentials-cli #493

Merge pull request #2062 from transformerlab/fix/credentials-cli

Merge pull request #2062 from transformerlab/fix/credentials-cli #493

Workflow file for this run

name: CLI Tests
on:
push:
branches:
- main
paths:
- "cli/**"
pull_request:
branches:
- main
paths:
- "cli/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
pytest:
runs-on: ubuntu-latest
defaults:
run:
working-directory: cli
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Set up uv
uses: astral-sh/setup-uv@v4
- name: Install CLI with uv
run: |
uv venv --python 3.10
uv pip install -e .
uv pip install pytest
- name: Run CLI tests (uv)
run: |
uv run pytest