Skip to content

Commit e816730

Browse files
committed
Makefile improvements
1 parent fdc8fd1 commit e816730

File tree

9 files changed

+15
-11
lines changed

9 files changed

+15
-11
lines changed

.github/workflows/python-3.10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python -m pip install --upgrade pip
2525
python -m pip install poetry
2626
poetry config virtualenvs.create false
27-
poetry install --no-root --with http,grpc,dev
27+
make dev-dependencies
2828
- name: Test with pytest
2929
run: |
3030
make ci-test

.github/workflows/python-3.11.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python -m pip install --upgrade pip
2525
python -m pip install poetry
2626
poetry config virtualenvs.create false
27-
poetry install --no-root --with http,grpc,dev
27+
make dev-dependencies
2828
- name: Test with pytest
2929
run: |
3030
make ci-test

.github/workflows/python-3.9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python -m pip install --upgrade pip
2525
python -m pip install poetry
2626
poetry config virtualenvs.create false
27-
poetry install --no-root --with http,grpc,dev
27+
make dev-dependencies
2828
- name: Test with pytest
2929
run: |
3030
make ci-test

.github/workflows/python-code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python -m pip install --upgrade pip
2525
python -m pip install poetry
2626
poetry config virtualenvs.create false
27-
poetry install --no-root --with http,grpc,dev
27+
make dev-dependencies
2828
- name: Check code style with black
2929
run: |
3030
make format

.github/workflows/python-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
python -m pip install --upgrade pip
2525
python -m pip install poetry
2626
poetry config virtualenvs.create false
27-
poetry install --no-root --with http,grpc,dev
27+
make dev-dependencies
2828
- name: Lint with ruff
2929
run: make lint

.github/workflows/python-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python -m pip install --upgrade pip
2525
python -m pip install poetry
2626
poetry config virtualenvs.create false
27-
poetry install --no-root --with http,grpc,dev
27+
make dev-dependencies
2828
- name: Test & publish code coverage
2929
uses: paambaati/[email protected]
3030
if: env.CC_TEST_REPORTER_ID != null

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ COPY --chown=nonroot:nonroot poetry.lock .
4343

4444
# Test image, contains all files and dependencies
4545
FROM base_builder as dev
46-
RUN poetry install --with http,grpc,dev
46+
RUN make dev-dependencies
4747
COPY --chown=nonroot:nonroot . .
4848
# Note that opentelemetry doesn't play well together with uvicorn reloader
4949
# when signals are propagated, we disable it in dev image default CMD

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ ci-coverage:
3030
typing:
3131
poetry run mypy
3232

33-
dev-deps:
33+
install-dependencies:
34+
poetry install --no-root --with http,grpc
35+
36+
dev-dependencies:
3437
poetry install --no-root --with http,grpc,dev
3538

36-
update-deps:
39+
update-dependencies:
3740
poetry update --with http,grpc,dev
3841

3942
migrate:

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ Using Docker:
7676
Locally:
7777

7878
* `make migrate`: Run database migrations
79-
* `make dev-deps`: Install requirements
80-
* `make update-deps`: Updates requirements
79+
* `make install-dependencies`: Install requirements
80+
* `make dev-dependencies`: Install dev requirements
81+
* `make update-dependencies`: Updates requirements
8182
* `make migrate`: Run database migrations
8283
* `make dev`: Run HTTP application with hot reload
8384
* `make grpc`: Run GRPC application

0 commit comments

Comments
 (0)