Skip to content

Commit abd9222

Browse files
committed
install classiq separately, for dev environment
1 parent 68deba4 commit abd9222

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/Test-CI-dev.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,23 @@ jobs:
8686
run: |
8787
set -e
8888
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
89+
90+
# Install "classiq" separately
91+
export CODEARTIFACT_AUTH_TOKEN="$( \
92+
aws codeartifact get-authorization-token \
93+
--domain ${{ secrets.CODEARTIFACT_DOMAIN }} \
94+
--domain-owner ${{ secrets.CODEARTIFACT_OWNER }} \
95+
--region ${{ secrets.CODEARTIFACT_REGION }} \
96+
--query authorizationToken \
97+
--output text \
98+
)"
99+
python -m pip install -U --pre \
100+
--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/" \
101+
classiq
102+
103+
# Install everything from the requirements, other than "classiq".
104+
python -m pip install -U $(grep -ivE "classiq" requirements.txt)
105+
python -m pip install -U -r requirements_tests.txt
92106
93107
#
94108
# Setup Environment

0 commit comments

Comments
 (0)