Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Oct 4, 2024
1 parent cb479c5 commit 4fafa06
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ on: [push, pull_request]
jobs:
server:
runs-on: ubuntu-latest
services:
redis:
image: redis:alpine
ports:
- "6379:6379"

mongo:
image: mongo:4.4
ports:
- "27017:27017"

elastic:
image: elasticsearch:7.17.23
ports:
- "9200:9200"
env:
discovery.type: single-node

strategy:
matrix:
python-version: ['3.8', '3.10']
Expand All @@ -24,8 +42,6 @@ jobs:
- run: git config --global url."https://git@".insteadOf git://
- name: Setup Environment
run: ./scripts/ci-install.sh
- name: Start Services
run: ./scripts/ci-start-services.sh
- name: Pytest
run: pytest --log-level=ERROR --disable-warnings
- name: Behave
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci-start-services.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

if [ "$SERVER" == "true" ]; then
docker-compose -f .travis-docker-compose.yml up -d
docker compose -f .travis-docker-compose.yml up -d
while ! curl -sfo /dev/null 'http://localhost:9200/'; do echo -n '.' && sleep .5; done
fi

0 comments on commit 4fafa06

Please sign in to comment.