Skip to content

Merge pull request #287 from Dallinger/issues/285-transition-bug #141

Merge pull request #287 from Dallinger/issues/285-transition-bug

Merge pull request #287 from Dallinger/issues/285-transition-bug #141

Workflow file for this run

name: Run tests
on:
push:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r https://raw.githubusercontent.com/Dallinger/Dallinger/issues/5330-websocket-updates/dev-requirements.txt
pip install -r dev-requirements.txt
- name: Install dallinger
run: |
pip install git+https://github.com/Dallinger/Dallinger.git@issues/5330-websocket-updates#egg=dallinger[docker]
- name: Install experiment
run: |
pip install -e .[dev]
- name: Start dallinger services as docker containers
run: dallinger docker start-services
- name: Run pytest
run: pytest --junit-xml=test-results.xml
- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
path: test-results.xml
summary: true
display-options: fEX
fail-on-empty: true
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install yarn globally
run: npm install -g yarn
- name: Install JS deps with yarn
run: yarn install --ignore-optional
- uses: pre-commit/action@v2.0.0