-
Notifications
You must be signed in to change notification settings - Fork 44
40 lines (36 loc) · 1.09 KB
/
main.yml
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: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
ci:
strategy:
fail-fast: false
max-parallel: 1
matrix:
python-version: [3.8, 3.9, '3.10']
couchdb-version: [2.3, 3.2, 'latest']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get poetry
run: pip install poetry
- name: Set up CouchDB
run: docker run --name couchdb-test-${{ matrix.couchdb-version }} -p 5984:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -d couchdb:${{ matrix.couchdb-version }}
- run: poetry install
- run: poetry run pytest -v ./test/test_integration.py
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- name: Get poetry
run: pip install poetry
- run: poetry install
- run: poetry run pytest -v --doctest-modules --cov pycouchdb ./test/test_functional.py