Spaces:
Build error
Build error
Jingni (Janet) Cai
Create new actions for unitest; adding .gitignore file; using CPU only torch for now;
dad7128 Download .github/workflows/python-app.yml from CS553-Group5/meowthamatical-chatbot: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/spaces/CS553-Group5/meowthamatical-chatbot/resolve/main/.github/workflows/python-app.yml
- Command line
-
hf download hf://spaces/CS553-Group5/meowthamatical-chatbot/.github/workflows/python-app.yml
-
curl -L -o python-app.yml https://huggingface.co/spaces/CS553-Group5/meowthamatical-chatbot/resolve/main/.github/workflows/python-app.yml
760 Bytes
| name: Python package | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m venv pyenv | |
| pyenv/bin/python -m pip install --upgrade pip | |
| pyenv/bin/pip install -r requirements.txt | |
| - name: Test with pytest | |
| run: | | |
| pyenv/bin/pip install pytest pytest-cov | |
| pyenv/bin/python -m pytest test_app.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html | |