Skip to content

Commit cf99560

Browse files
committed
add test workflow
1 parent 776910b commit cf99560

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Integration Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 4
10+
matrix:
11+
python-version: ['3.8', '3.9', '3.10', '3.11']
12+
13+
env:
14+
PORT: 8080
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v4"
18+
- name: Run Dataverse Action
19+
id: dataverse
20+
uses: gdcc/dataverse-action@main
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python3 -m pip install --upgrade pip
28+
python3 -m pip install poetry
29+
pip3 install -e .[test]
30+
- name: Test with pytest
31+
env:
32+
API_TOKEN: ${{ steps.dataverse.outputs.api_token }}
33+
BASE_URL: ${{ steps.dataverse.outputs.base_url }}
34+
DVUPLOADER_TESTING: "true"
35+
run: |
36+
python3 -m poetry run pytest

0 commit comments

Comments
 (0)