Skip to content

Commit

Permalink
Adjust requirements files and bump dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
clayoster committed Feb 10, 2025
1 parent fc8604c commit 6b1f7f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir -r requirements.txt
pip install pylint
pip install --no-cache-dir -r app-requirements.txt -r app-dev-requirements.txt
- name: Run pylint
run: |
Expand All @@ -39,8 +38,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir -r requirements.txt
pip install pytest pytest-flask
pip install --no-cache-dir -r app-requirements.txt -r app-dev-requirements.txt
- name: Run pytest
run: |
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COPY . /app
RUN set -ex \
&& apk upgrade --available --no-cache \
&& rm -rf /var/cache/apk/* \
&& pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir -r app-requirements.txt \
&& pip cache purge \
&& adduser -D app

Expand All @@ -34,7 +34,7 @@ FROM base AS dev
RUN set -ex \
&& apk add git \
&& rm -rf /var/cache/apk/* \
&& pip install --no-cache-dir pylint pytest pytest-flask \
&& pip install --no-cache-dir -r app-dev-requirements.txt \
&& pip cache purge

# Add environment variables
Expand Down
3 changes: 3 additions & 0 deletions app-dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pylint==3.3.4
pytest==8.3.4
pytest-flask==1.3.0
2 changes: 1 addition & 1 deletion requirements.txt → app-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Keep cloudflare at 2.19.* versions currently.
# 3.x versions will require a rewrite
cloudflare==2.19.4
Flask==3.0.3
Flask==3.1.0
Flask-HTTPAuth==4.8.0
gunicorn==23.0.0
Werkzeug==3.1.3

0 comments on commit 6b1f7f2

Please sign in to comment.