Frontend Search, About Us, and Favorites Page #83
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Model Tests on Pull Requests to 'main' Branch | |
| # Run on every pull request to 'main' branch | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| # Run the following Jobs (just 1) | |
| jobs: | |
| # Run the "run_test" job | |
| run_test: | |
| # It should run on latest ubuntu OS | |
| runs-on: ubuntu-latest | |
| # It should use the following steps | |
| steps: | |
| # Checkout the current repository | |
| - uses: actions/checkout@v3 | |
| with: | |
| ref: production | |
| fetch-depth: 0 | |
| lfs: true | |
| # Install Python with 3.12 version | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| # Install all required python libraries | |
| - name: Install Required Libraries | |
| run: | | |
| pip install -r requirements.txt | |
| # Run all the unit tests quietly | |
| - name: Run Unit Test for Chat Models (Quietly) | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| PYTHONPATH: ${{ github.workspace }} | |
| run: | | |
| pytest -q tests/test_chat_models.py |