Fix broken test build #365
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
[push, pull_request] | |
jobs: | |
server-py-36: | |
runs-on: ubuntu-20.04 | |
services: | |
redis: | |
image: redis:alpine | |
ports: | |
- "6379:6379" | |
mongo: | |
image: mongo:3.6 | |
ports: | |
- "27017:27017" | |
elastic: | |
image: elasticsearch:2.4-alpine | |
ports: | |
- "9200:9200" | |
env: | |
discovery.type: single-node | |
defaults: | |
run: | |
working-directory: server | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.6 | |
- run: | | |
sudo apt-get update | |
sudo apt-get install pkg-config libxml2-dev libxmlsec1-dev libxmlsec1-openssl | |
- name: cache pip | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip | |
${{ runner.os }}- | |
- name: pip install | |
run: | | |
python -m pip install --upgrade pip wheel setuptools | |
pip install -r dev-requirements.txt | |
- name: flake8 | |
run: flake8 | |
- name: pytest | |
run: pytest --ignore=tests/aap/ --disable-pytest-warnings --cov=newsroom | |
- name: behave | |
run: behave --format progress2 --logging-level=ERROR | |
client-node-12: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- name: cache npm | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm | |
${{ runner.os }}- | |
- name: npm ci | |
run: npm ci | |
- name: lint | |
run: npm run lint | |
- name: test | |
run: npm run test | |
- name: build | |
run: npm run build |