Spaces:
Build error
Build error
Download .github/workflows/test_default.yaml from ml-usecases/media_assistant: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/ml-usecases/media_assistant/resolve/main/.github/workflows/test_default.yaml
- Command line
-
hf download hf://spaces/ml-usecases/media_assistant/.github/workflows/test_default.yaml
-
curl -L -o test_default.yaml https://huggingface.co/spaces/ml-usecases/media_assistant/resolve/main/.github/workflows/test_default.yaml
1.1 kB
| name: Run Pytest | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| PINECONE_KEY: ${{ secrets.PINECONE_KEY }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| strategy: | |
| matrix: | |
| python-version: [3.10.12] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest | |
| pip install pandas | |
| pip install boto3 | |
| pip install pinecone | |
| pip install torch | |
| pip install transformers | |
| pip install python-dotenv | |
| pip install gradio_client | |
| - name: Run tests | |
| run: | | |
| pytest -v -s | |