-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (45 loc) · 1.26 KB
/
Copy pathtest.yml
File metadata and controls
54 lines (45 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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