Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid docker-compose on github actions #185

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,36 @@ jobs:
server:
runs-on: ubuntu-latest

services:
redis:
image: redis:alpine
ports:
- "6379:6379"

mongo:
image: mongo:3.6
ports:
- "27017:27017"

elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
ports:
- "9200:9200"
env:
discovery.type: single-node

defaults:
run:
working-directory: server

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: docker-compose
run: docker-compose -f ../.actions-docker-compose.yml up -d

- run: sudo apt-get update && sudo apt-get -y install libxml2-dev libxmlsec1-dev libxmlsec1-openssl

- name: pip install
Expand All @@ -47,7 +62,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '14.x'

Expand Down
2 changes: 1 addition & 1 deletion server/cp/mgmt_api/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class NewsroomMGMTAPI(BaseNewsroomApp):
AUTH_SERVICE = JWTAuth

def __init__(self, import_name=__package__, config=None, **kwargs):
if not getattr(self, 'settings'):
if not hasattr(self, 'settings'):
self.settings = flask.Config('.')

if config and config.get('BEHAVE'):
Expand Down
Loading