Skip to content

Commit ab408fb

Browse files
authored
Merge pull request #1444 from cmu-delphi/new-ci-make
Add make install-ci target to install without editable mode
2 parents 3703b60 + daa52d2 commit ab408fb

File tree

29 files changed

+144
-93
lines changed

29 files changed

+144
-93
lines changed

.github/workflows/python-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
pip install pylint pytest pydocstyle wheel
3333
- name: Install
3434
run: |
35-
make install
35+
make install-ci
3636
- name: Lint
3737
run: |
3838
make lint

_delphi_utils_python/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ install: venv
88
pip install wheel ; \
99
pip install -e .
1010

11+
install-ci: venv
12+
. env/bin/activate; \
13+
pip install wheel ; \
14+
pip install .
15+
1116
lint:
1217
. env/bin/activate; pylint delphi_utils
1318
. env/bin/activate; pydocstyle delphi_utils

_template_python/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY = venv, lint, test, clean
22

3-
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4-
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*' | head -1)
54
venv:
65
python3.8 -m venv env
76

@@ -11,6 +10,12 @@ install: venv
1110
pip install -e ../_delphi_utils_python ;\
1211
pip install -e .
1312

13+
install-ci: venv
14+
. env/bin/activate; \
15+
pip install wheel ; \
16+
pip install ../_delphi_utils_python ;\
17+
pip install .
18+
1419
lint:
1520
. env/bin/activate; pylint $(dir)
1621
. env/bin/activate; pydocstyle $(dir)

cdc_covidnet/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY = venv, lint, test, clean
22

3-
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4-
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*' | head -1)
54
venv:
65
python3.8 -m venv env
76

@@ -11,6 +10,12 @@ install: venv
1110
pip install -e ../_delphi_utils_python ;\
1211
pip install -e .
1312

13+
install-ci: venv
14+
. env/bin/activate; \
15+
pip install wheel ; \
16+
pip install ../_delphi_utils_python ;\
17+
pip install .
18+
1419
lint:
1520
. env/bin/activate; pylint $(dir)
1621
. env/bin/activate; pydocstyle $(dir)

changehc/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY = venv, lint, test, clean
22

3-
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4-
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*' | head -1)
54
venv:
65
python3.8 -m venv env
76

@@ -11,6 +10,12 @@ install: venv
1110
pip install -e ../_delphi_utils_python ;\
1211
pip install -e .
1312

13+
install-ci: venv
14+
. env/bin/activate; \
15+
pip install wheel ; \
16+
pip install ../_delphi_utils_python ;\
17+
pip install .
18+
1419
lint:
1520
. env/bin/activate; pylint $(dir)
1621
. env/bin/activate; pydocstyle $(dir)

claims_hosp/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY = venv, lint, test, clean
22

3-
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4-
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*' | head -1)
54
venv:
65
python3.8 -m venv env
76

@@ -11,6 +10,12 @@ install: venv
1110
pip install -e ../_delphi_utils_python ;\
1211
pip install -e .
1312

13+
install-ci: venv
14+
. env/bin/activate; \
15+
pip install wheel ; \
16+
pip install ../_delphi_utils_python ;\
17+
pip install .
18+
1419
lint:
1520
. env/bin/activate; pylint $(dir)
1621
. env/bin/activate; pydocstyle $(dir)

combo_cases_and_deaths/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY = venv, lint, test, clean
22

3-
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4-
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*' | head -1)
54
venv:
65
python3.8 -m venv env
76

@@ -11,6 +10,12 @@ install: venv
1110
pip install -e ../_delphi_utils_python ;\
1211
pip install -e .
1312

13+
install-ci: venv
14+
. env/bin/activate; \
15+
pip install wheel ; \
16+
pip install ../_delphi_utils_python ;\
17+
pip install .
18+
1419
lint:
1520
. env/bin/activate; pylint $(dir)
1621
. env/bin/activate; pydocstyle $(dir)

covid_act_now/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY = venv, lint, test, clean
22

3-
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4-
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*' | head -1)
54
venv:
65
python3.8 -m venv env
76

@@ -11,6 +10,12 @@ install: venv
1110
pip install -e ../_delphi_utils_python ;\
1211
pip install -e .
1312

13+
install-ci: venv
14+
. env/bin/activate; \
15+
pip install wheel ; \
16+
pip install ../_delphi_utils_python ;\
17+
pip install .
18+
1419
lint:
1520
. env/bin/activate; pylint $(dir)
1621
. env/bin/activate; pydocstyle $(dir)

doctor_visits/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY = venv, lint, test, clean
22

3-
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4-
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*' | head -1)
54
venv:
65
python3.8 -m venv env
76

@@ -11,6 +10,12 @@ install: venv
1110
pip install -e ../_delphi_utils_python ;\
1211
pip install -e .
1312

13+
install-ci: venv
14+
. env/bin/activate; \
15+
pip install wheel ; \
16+
pip install ../_delphi_utils_python ;\
17+
pip install .
18+
1419
lint:
1520
. env/bin/activate; pylint $(dir)
1621
. env/bin/activate; pydocstyle $(dir)

google_symptoms/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY = venv, lint, test, clean
22

3-
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*')
4-
3+
dir = $(shell find ./delphi_* -name __init__.py | grep -o 'delphi_[_[:alnum:]]*' | head -1)
54
venv:
65
python3.8 -m venv env
76

@@ -11,6 +10,12 @@ install: venv
1110
pip install -e ../_delphi_utils_python ;\
1211
pip install -e .
1312

13+
install-ci: venv
14+
. env/bin/activate; \
15+
pip install wheel ; \
16+
pip install ../_delphi_utils_python ;\
17+
pip install .
18+
1419
lint:
1520
. env/bin/activate; pylint $(dir)
1621
. env/bin/activate; pydocstyle $(dir)

0 commit comments

Comments
 (0)