Skip to content

Commit b18f838

Browse files
committed
Add formating, linting, and testing actions
1 parent 2e0c215 commit b18f838

18 files changed

+1098
-479
lines changed

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ FROM python:3.8-slim as base
22

33
WORKDIR /data
44

5-
# Install Deps if there are any
6-
COPY pyproject.toml poetry.lock ./
7-
RUN pip3 install poetry && \
8-
poetry install --only main --no-root
5+
# Install poetry
6+
RUN pip3 install poetry
97

8+
# Copy depdencies and install base packages
9+
COPY pyproject.toml poetry.lock ./
10+
RUN poetry config virtualenvs.create false && \
11+
poetry install --no-root
12+
13+
# Copy rest of the repo
1014
COPY . .

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ develop: build
77
./scripts/run_develop_container.sh ${IMAGE_NAME} bash
88

99
test: build
10-
./scripts/run_develop_container.sh ${IMAGE_NAME} python3 -m unittest
10+
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/test_package.sh
11+
12+
format: build
13+
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/format_package.sh
14+
15+
lint: build
16+
./scripts/run_develop_container.sh ${IMAGE_NAME} scripts/lint_package.sh
1117

1218
PYPI_USER?=${PYPI_USER}
1319
PYPI_PASSWORD?=${PYPI_PASSWORD}

0 commit comments

Comments
 (0)