ci: add GitHub Actions workflow for Python testing (#1) #4
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| QUIP_TOKEN: ${{ secrets.QUIP_TOKEN }} | |
| QUIP_BASE_URL: ${{ secrets.QUIP_BASE_URL }} | |
| TEST_THREAD_ID: ${{ secrets.TEST_THREAD_ID }} | |
| TEST_SHEET_NAME: ${{ secrets.TEST_SHEET_NAME }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip | |
| - name: Install project dependencies | |
| run: pip install . | |
| - name: Install pytest | |
| run: pip install pytest | |
| - name: Show Python version and installed packages | |
| run: | | |
| python --version | |
| pip list | |
| - name: Run unit tests | |
| run: pytest tests | |
| - name: Run e2e tests | |
| run: pytest tests/e2e |