Skip to content

Commit cd865d0

Browse files
authored
Merge pull request #449 from cmu-delphi/add-ci
Add CI for python
2 parents f005552 + 6f645e9 commit cd865d0

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/python-ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-20.04
16+
strategy:
17+
matrix:
18+
#packages: [_delphi_utils_python, cdc_covidnet, claims_hosp, combo_cases_and_deaths, google_symptoms, jhu, nchs_mortality, quidel, quidel_covidtest, safegraph, safegraph_patterns, usafacts]
19+
packages: [cdc_covidnet, claims_hosp, combo_cases_and_deaths, google_symptoms, jhu, nchs_mortality, quidel, quidel_covidtest, safegraph, safegraph_patterns, usafacts]
20+
defaults:
21+
run:
22+
working-directory: ${{ matrix.packages }}
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up Python 3.8
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: 3.8
29+
- name: Install testing dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install pylint pytest pydocstyle wheel
33+
- name: Install
34+
run: |
35+
make install
36+
- name: Lint
37+
run: |
38+
# make lint
39+
- name: Test
40+
run: |
41+
make test

0 commit comments

Comments
 (0)