Skip to content

Commit

Permalink
Merge pull request #56 from CybercentreCanada/update/py11-12
Browse files Browse the repository at this point in the history
Updating test pipeline for Python 3.11 and 3.12
  • Loading branch information
cccs-kevin authored Jan 22, 2024
2 parents 6b68c0f + 23abffa commit 2031230
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Switch to assemblyline user
USER assemblyline

# Install python dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --user --requirement requirements.txt && rm -rf ~/.cache/pip

# Copy service code
WORKDIR /opt/al_service
COPY . .
Expand Down
10 changes: 4 additions & 6 deletions pipelines/azure-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ jobs:
- job: run_test
strategy:
matrix:
Python3_9:
python.version: "3.9"
#Python3_10:
# python.version: "3.10"
#Python3_11:
# python.version: "3.11"
Python3_11:
python.version: "3.11"
Python3_12:
python.version: "3.12"

timeoutInMinutes: 10

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setuptools; python_version >= "3.12"

0 comments on commit 2031230

Please sign in to comment.