Nhsn indicator #4626
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python package | |
on: | |
push: | |
branches: [main, prod] | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: [main, prod] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
if: github.event.pull_request.draft == false | |
strategy: | |
matrix: | |
include: | |
- package: "_delphi_utils_python" | |
dir: "delphi_utils" | |
- package: "changehc" | |
dir: "delphi_changehc" | |
- package: "claims_hosp" | |
dir: "delphi_claims_hosp" | |
- package: "doctor_visits" | |
dir: "delphi_doctor_visits" | |
- package: "google_symptoms" | |
dir: "delphi_google_symptoms" | |
- package: "hhs_hosp" | |
dir: "delphi_hhs" | |
- package: "nchs_mortality" | |
dir: "delphi_nchs_mortality" | |
- package: "nssp" | |
dir: "delphi_nssp" | |
- package: "nwss_wastewater" | |
dir: "delphi_nwss" | |
- package: "quidel_covidtest" | |
dir: "delphi_quidel_covidtest" | |
- package: "sir_complainsalot" | |
dir: "delphi_sir_complainsalot" | |
- package: "nhsn" | |
dir: "delphi_nhsn" | |
defaults: | |
run: | |
working-directory: ${{ matrix.package }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
cache: "pip" | |
cache-dependency-path: "pyproject.toml" | |
- name: Install testing dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint pytest pydocstyle wheel | |
- name: Install | |
run: | | |
make install-ci | |
- name: Lint | |
run: | | |
make lint | |
- name: Test | |
run: | | |
make test | |
- uses: akaihola/[email protected] | |
with: | |
options: "--check --diff --isort --color" | |
src: "${{ matrix.package }}/${{ matrix.dir }}" | |
version: "~=2.1.1" |