Modify ReadSourceData to handle re-running eCRs #978
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: 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 |