Skip to content

Commit

Permalink
Merge pull request #82 from dimagi/gh/github-actions
Browse files Browse the repository at this point in the history
Move to github actions
  • Loading branch information
gherceg authored Jan 1, 2024
2 parents 26959f6 + 90890fe commit 84e3a35
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: couchdbkit test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-22.04

strategy:
matrix:
python-version: [ "3.9" ]
django-version: [ "3.2.*", "4.2.*" ]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: |
pip install django==${{ matrix.django-version }}
pip install -r requirements_dev.txt
python setup.py install
- name: start up couch
run: |
docker run -d --name couchdb-cluster -p 5984:5984 \
-v $(pwd)/data:/usr/src/couchdb/dev/lib/ \
klaemo/couchdb:2.0-dev \
--with-admin-party-please --with-haproxy -n 1
- name: wait for couch to start
run: timeout 60s sh -c 'until curl http://localhost:5984/${db_name} -sv 2>&1 | grep "^< HTTP/.* 200 OK"; do echo "Waiting for container to be healthy..."; sleep 2; done'
- name: run tests
run: |
python setup.py test
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

0 comments on commit 84e3a35

Please sign in to comment.