Skip to content

Insert non-null MRN & SSN identifiers and non-null phone numbers #970

Insert non-null MRN & SSN identifiers and non-null phone numbers

Insert non-null MRN & SSN identifiers and non-null phone numbers #970

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
branches:
- "**"
push:
branches:
- main
env:
TEST_RUNNER_PYTHON_VERSION: 3.9
jobs:
unit-test-python-functions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v4
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install Pytest
run: pip install pytest
- name: Install dependencies
working-directory: ./serverless-functions
run: |
pip install -r requirements.txt
- name: Run unit tests for serverless-functions
working-directory: ./serverless-functions
run: |
python -m pytest
code-check-python:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v4
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install black flake8
- name: Check format (black)
run: |
black --check --verbose .
- name: Check style (flake8)
run: |
flake8
ensure-clean-notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check notebook cleanliness
uses: ResearchSoftwareActions/EnsureCleanNotebooksAction@1.1