-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.3 KB
/
tdd-tests.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: TDD Tests
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
container: python:3.9-slim
services:
couchdb:
image: couchdb:latest
ports:
- 5984:5984
env:
COUCHDB_USER: admin
COUCHDB_PASSWORD: pass
options: >-
--health-cmd "curl -X GET http://couchdb:5984/"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements.txt
- name: Create the test database
run: |
apt-get update
apt-get install -y curl
curl -X PUT http://admin:pass@couchdb:5984/test
- name: Run unit tests with nose
run: nosetests
env:
BINDING_CLOUDANT: '{"username":"admin","password":"pass","host":"couchdb","port":5984,"url":"http://admin:pass@couchdb:5984"}'
- name: Upload code coverage
uses: codecov/codecov-action@v2
with:
version: "v0.1.13"