Skip to content

Commit

Permalink
simplify call_server_tests github action
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Feb 4, 2025
1 parent 12469d6 commit 93ea23e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/call_server_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,26 @@ jobs:
server-tests:
runs-on: ${{ inputs.os }}
steps:
- name: checkout repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
- name: Checkout repo at ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Install dependencies
- name: Install Rust
shell: bash
run: |
python -m pip install --upgrade pip
pip install pytest
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.75.0
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install guidance in ${{ inputs.os }}
shell: bash
run: |
pip install --upgrade pip
pip install -e .[all,test]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run server tests
- name: server tests
shell: bash
run: |
pytest --cov=guidance --cov-report=xml --cov-report=term-missing \
pytest -vv --cov=guidance --cov-report=xml --cov-report=term-missing \
./tests/server

0 comments on commit 93ea23e

Please sign in to comment.