Skip to content

Commit

Permalink
Use latest pre-release classiq version
Browse files Browse the repository at this point in the history
  • Loading branch information
shahakL committed Dec 30, 2024
1 parent beba53a commit 7266004
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 16 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/Test-CI-dev-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ jobs:
- name: Debug
run: git status

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

- name: Install dependencies
run: |
set -e
python -m pip install -U pip \
--extra-index-url https://pypi.org/simple
# Install "classiq" separately
export CODEARTIFACT_AUTH_TOKEN="$( \
aws codeartifact get-authorization-token \
--domain ${{ secrets.CODEARTIFACT_DOMAIN }} \
--domain-owner ${{ secrets.CODEARTIFACT_OWNER }} \
--region ${{ secrets.CODEARTIFACT_REGION }} \
--query authorizationToken \
--output text \
)"
python -m pip install -U --pre \
--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/" \
--extra-index-url https://pypi.org/simple \
classiq
# Install everything from the requirements, other than "classiq".
python -m pip install -U $(grep -ivE "classiq" requirements.txt) \
--extra-index-url https://pypi.org/simple
python -m pip install -U -r requirements_tests.txt \
--extra-index-url https://pypi.org/simple
# Set authentication with M2M token
- name: Set authentication
run: .github/scripts/get_m2m_token.sh
Expand Down
33 changes: 24 additions & 9 deletions .github/workflows/Test-CI-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@ jobs:
with:
python-version: "3.11"

- name: Install dependencies
if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
set -e
python -m pip install -U pip
# The `--pre` allows the installation of pre-release versions of packages (needed for Dev)
python -m pip install --extra-index-url https://pypi.org/simple --pre -U -r requirements.txt
python -m pip install --extra-index-url https://pypi.org/simple -U -r requirements_tests.txt
#
# Setup Environment
#
Expand All @@ -101,6 +92,30 @@ jobs:
aws-region: us-east-1
mask-aws-account-id: true

- name: Install dependencies
run: |
set -e
python -m pip install -U pip \
--extra-index-url https://pypi.org/simple
# Install "classiq" separately
export CODEARTIFACT_AUTH_TOKEN="$( \
aws codeartifact get-authorization-token \
--domain ${{ secrets.CODEARTIFACT_DOMAIN }} \
--domain-owner ${{ secrets.CODEARTIFACT_OWNER }} \
--region ${{ secrets.CODEARTIFACT_REGION }} \
--query authorizationToken \
--output text \
)"
python -m pip install -U --pre \
--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/" \
--extra-index-url https://pypi.org/simple \
classiq
# Install everything from the requirements, other than "classiq".
python -m pip install -U $(grep -ivE "classiq" requirements.txt) \
--extra-index-url https://pypi.org/simple
python -m pip install -U -r requirements_tests.txt \
--extra-index-url https://pypi.org/simple
# Set authentication with M2M token
- name: Set authentication
run: .github/scripts/get_m2m_token.sh
Expand Down

0 comments on commit 7266004

Please sign in to comment.