Fix upload response parsing AttributeError #2
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: test | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.13"] | |
| os: [ubuntu-latest] | |
| defaults: | |
| run: | |
| shell: bash | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies and verify package builds | |
| run: | | |
| uv sync | |
| uv run python -c "import pyzotero_cli; print('Import OK')" | |
| integration-test: | |
| runs-on: ubuntu-latest | |
| environment: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies and run integration tests | |
| env: | |
| ZOTERO_API_KEY: ${{ secrets.ZOTERO_API_KEY }} | |
| ZOTERO_LIBRARY_ID: ${{ secrets.ZOTERO_LIBRARY_ID }} | |
| ZOTERO_LIBRARY_TYPE: ${{ secrets.ZOTERO_LIBRARY_TYPE }} | |
| ZOTERO_USERNAME: ${{ secrets.ZOTERO_USERNAME }} | |
| run: | | |
| uv sync | |
| uv run pytest tests -v |