Skip to content

Commit fe7c4a8

Browse files
committed
Use latest pre-release classiq version
1 parent beba53a commit fe7c4a8

File tree

2 files changed

+48
-16
lines changed

2 files changed

+48
-16
lines changed

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

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ jobs:
3232
- name: Debug
3333
run: git status
3434

35-
- name: Install dependencies
36-
run: |
37-
set -e
38-
python -m pip install -U pip
39-
python -m pip install --extra-index-url https://pypi.org/simple --pre -U -r requirements.txt
40-
python -m pip install --extra-index-url https://pypi.org/simple -U -r requirements_tests.txt
41-
4235
# Configure AWS credentials
4336
- name: Configure AWS Credentials
4437
uses: aws-actions/[email protected]
@@ -47,6 +40,30 @@ jobs:
4740
aws-region: us-east-1
4841
mask-aws-account-id: true
4942

43+
- name: Install dependencies
44+
run: |
45+
set -e
46+
python -m pip install -U pip \
47+
--extra-index-url https://pypi.org/simple
48+
# Install "classiq" separately
49+
export CODEARTIFACT_AUTH_TOKEN="$( \
50+
aws codeartifact get-authorization-token \
51+
--domain ${{ secrets.CODEARTIFACT_DOMAIN }} \
52+
--domain-owner ${{ secrets.CODEARTIFACT_OWNER }} \
53+
--region ${{ secrets.CODEARTIFACT_REGION }} \
54+
--query authorizationToken \
55+
--output text \
56+
)"
57+
python -m pip install -U --pre \
58+
--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/" \
59+
--extra-index-url https://pypi.org/simple \
60+
classiq
61+
# Install everything from the requirements, other than "classiq".
62+
python -m pip install -U $(grep -ivE "classiq" requirements.txt) \
63+
--extra-index-url https://pypi.org/simple
64+
python -m pip install -U -r requirements_tests.txt \
65+
--extra-index-url https://pypi.org/simple
66+
5067
# Set authentication with M2M token
5168
- name: Set authentication
5269
run: .github/scripts/get_m2m_token.sh

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

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@ jobs:
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

Comments
 (0)