New pipeline runner image. #1991
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: unit tests | |
# Run the test suite on pushes (incl. merges) to main and dev | |
# Run the test suite when a PR is opened, pushed to, or reopened | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
unit_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: 'requirements**.txt' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
- name: Check Ruff Format | |
run: ruff format --check v03_pipeline --diff | |
- name: Check Ruff | |
run: ruff . --output-format github | |
- name: Unit Tests | |
run: | | |
export REFERENCE_DATA_AUTO_UPDATE=1 | |
export ACCESS_PRIVATE_REFERENCE_DATASETS=1 | |
export PYSPARK_SUBMIT_ARGS='--driver-memory 8G pyspark-shell' | |
nosetests --with-coverage --cover-package v03_pipeline/lib v03_pipeline/lib | |
coverage report --omit '*test*' --fail-under=75 |