-
Notifications
You must be signed in to change notification settings - Fork 47
40 lines (34 loc) · 1011 Bytes
/
tests.yml
File metadata and controls
40 lines (34 loc) · 1011 Bytes
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
name: Unit tests
on: [push]
jobs:
custom_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
name: Test pyDataverse
env:
PORT: 8080
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run Dataverse Action
id: dataverse
uses: gdcc/dataverse-action@main
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Python Dependencies
run: |
uv pip install --system ".[tests,mcp]"
- name: Run tests
env:
API_TOKEN_SUPERUSER: ${{ steps.dataverse.outputs.api_token }}
API_TOKEN: ${{ steps.dataverse.outputs.api_token }}
BASE_URL: ${{ steps.dataverse.outputs.base_url }}
DV_VERSION: ${{ steps.dataverse.outputs.dv_version }}
run: |
pytest -vv