Skip to content

Release version 0.2.0 #10

Release version 0.2.0

Release version 0.2.0 #10

Workflow file for this run

name: test
on:
pull_request:
branches: [main]
workflow_call:
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')"
- name: Run mock tests (no API credentials required)
run: uv run pytest tests -v
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 }}
ZOTERO_TEST_GROUP_ID: ${{ secrets.ZOTERO_TEST_GROUP_ID }}
run: |
uv sync
uv run pytest tests -v -m "live"