8181 with :
8282 python-version : " 3.11"
8383
84- - name : Install dependencies
85- if : steps.cache-pip.outputs.cache-hit != 'true'
86- run : |
87- set -e
88- python -m pip install -U pip
89- # The `--pre` allows the installation of pre-release versions of packages (needed for Dev)
90- python -m pip install --extra-index-url https://pypi.org/simple --pre -U -r requirements.txt
91- python -m pip install --extra-index-url https://pypi.org/simple -U -r requirements_tests.txt
92-
9384 #
9485 # Setup Environment
9586 #
@@ -101,6 +92,30 @@ jobs:
10192 aws-region : us-east-1
10293 mask-aws-account-id : true
10394
95+ - name : Install dependencies
96+ run : |
97+ set -e
98+ python -m pip install -U pip \
99+ --extra-index-url https://pypi.org/simple
100+ # Install "classiq" separately
101+ export CODEARTIFACT_AUTH_TOKEN="$( \
102+ aws codeartifact get-authorization-token \
103+ --domain ${{ secrets.CODEARTIFACT_DOMAIN }} \
104+ --domain-owner ${{ secrets.CODEARTIFACT_OWNER }} \
105+ --region ${{ secrets.CODEARTIFACT_REGION }} \
106+ --query authorizationToken \
107+ --output text \
108+ )"
109+ python -m pip install -U --pre \
110+ --extra-index-url "https://aws:$CODEARTIFACT_AUTH_TOKEN@${{ secrets.CODEARTIFACT_DOMAIN }}-${{ secrets.CODEARTIFACT_OWNER }}.d.codeartifact.${{ secrets.CODEARTIFACT_REGION }}.amazonaws.com/pypi/${{ secrets.PYPI_NIGHTLY_NAME }}/simple/" \
111+ --extra-index-url https://pypi.org/simple \
112+ classiq
113+ # Install everything from the requirements, other than "classiq".
114+ python -m pip install -U $(grep -ivE "classiq" requirements.txt) \
115+ --extra-index-url https://pypi.org/simple
116+ python -m pip install -U -r requirements_tests.txt \
117+ --extra-index-url https://pypi.org/simple
118+
104119 # Set authentication with M2M token
105120 - name : Set authentication
106121 run : .github/scripts/get_m2m_token.sh
0 commit comments