Skip to content

Commit

Permalink
fix: small issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro-v committed Jun 11, 2024
1 parent d8733eb commit c82dfb6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/cortex-js-openai-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,14 @@ jobs:
# Clone openai-api-python repo
git clone https://github.com/openai/openai-python.git -b $OPENAI_API_PYTHON_TAG
cd openai-python
python3 -m venv /tmp/jan
source /tmp/jan/bin/activate
pip install -r requirements-dev.lock
pip install pytest-reportportal pytest-html
# Create pytest.ini file with content
cp ../coverage/pytest.ini pytest.ini
echo "rp_api_key = ${{ secrets.RP_API_KEY }}" >> pytest.ini
echo "rp_endpoint = ${{ secrets.RP_ENDPOINT }}" >> pytest.ini
echo "rp_api_key=${{ secrets.RP_API_KEY }}" >> pytest.ini
echo "rp_endpoint=${{ secrets.RP_ENDPOINT }}" >> pytest.ini
# Append to conftest.py
cp ../coverage/conftest.py tests/conftest.py
Expand All @@ -82,8 +80,8 @@ jobs:

- name: Collect RP artifacts
run: |
wget -O total-coverage.json ${{ secrets.RP_ENDPOINT }}/api/v1/openai-api-test/widget/27 --header 'authorization: bearer ${{ secrets.RP_API_KEY }}'
wget -O today-endpoint.json ${{ secrets.RP_ENDPOINT }}/api/v1/openai-api-test/widget/multilevel/32 --header 'authorization: bearer ${{ secrets.RP_API_KEY }}'
wget -O total-coverage.json "${{ secrets.RP_ENDPOINT }}/api/v1/openai-api-test/widget/27" --header 'authorization: bearer ${{ secrets.RP_API_KEY }}'
wget -O today-endpoint.json "${{ secrets.RP_ENDPOINT }}/api/v1/openai-api-test/widget/multilevel/32" --header 'authorization: bearer ${{ secrets.RP_API_KEY }}'
cat total-coverage.json
current_date=$(date +"%m-%d-%Y")
cp today-endpoint.json "$current_date.json"
Expand Down

0 comments on commit c82dfb6

Please sign in to comment.