Release v4.0 – Full Rewrite with Async Support, Pydantic v2, and Modern Architecture #1
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 Pytest Tests | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| paths: | |
| - "tests/**" | |
| - ".github/workflows/test.yml" | |
| - "**.py" | |
| pull_request: | |
| branches: [ "master" ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| API_KEY: ${{ secrets.API_KEY }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| pip install pytest | |
| - name: Run tests | |
| run: | | |
| pytest tests/ |