diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c94cc43 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +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