Skip to content

Merge pull request #399 from smash-transport/roch/scientific_python_r… #440

Merge pull request #399 from smash-transport/roch/scientific_python_r…

Merge pull request #399 from smash-transport/roch/scientific_python_r… #440

Workflow file for this run

name: Run Tests
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
- sparkx_devel
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
python -m pytest tests/
- name: Check test results
run: |
if [ $? -ne 0 ]; then
echo "Tests failed. Blocking pull request merge."
exit 1
fi