-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.12.1-slim-bookworm
ADD requirements.txt /
ADD requirements-dev.txt /
# Requirements
RUN pip install --upgrade pip \
&& pip install -r requirements.txt -r requirements-dev.txt \
&& RELEASE_VERSION=$(grep version setup.py | awk -F\" '{print $2}') \
&& echo $RELEASE_VERSION
WORKDIR /app
# # Static type check
# RUN mypy --warn-unused-configs --python-version 3.8 --show-error-context --show-column-numbers --show-error-end --show-error-codes --pretty --html-report artifacts/statictypecheck --cobertura-xml-report statictypecheck rds_core
# # Static type check
# RUN python -m pytest
# # Build package
# RUN python setup.py sdist \
# && python setup.py validate_tag $RELEASE_VERSION && python setup.py sdist
# Deploy to PyPi
# uses: pypa/gh-action-pypi-publish@v1.8.5
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}