Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
!bin/run.py
!bin/run.sh
*.pyc
*.pyd
*.pyo
.appends
.dockerignore
.git
.gitattributes
.github
.gitignore
.gitattributes
.dockerignore
Dockerfile
__pycache__
bin/run-in-docker.sh
bin/run-tests-in-docker.sh
test/
venv/


4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
- name: Build Docker Image
run: docker build -f Dockerfile -t python-analyzer .

- name: Run Tests
run: docker run --entrypoint "pytest" python-analyzer
Comment thread
BethanyG marked this conversation as resolved.
- name: Run Tests for Analyzer in Docker
run: bin/run-tests-in-docker.sh
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FROM python:3.13.5-alpine3.22
FROM python:3.13-alpine3.23

COPY requirements.txt /requirements.txt
COPY dev-requirements.txt /dev-requirements.txt

RUN pip install -r /requirements.txt -r /dev-requirements.txt
RUN apk update && apk upgrade \
&& apk --no-cache add bash \
&& apk cache clean

RUN --mount=type=cache,target=/root/.cache/pip \
PYTHONDONTWRITEBYTECODE=1 \
pip install --no-compile --no-cache \
-r /requirements.txt

COPY . /opt/analyzer

Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pylint ~=4.0.4
pytest-subtests~=0.14.2
pytest~=8.4.0