Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: limit installs for dependent-tests.yml #792

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
7 changes: 2 additions & 5 deletions .github/workflows/dependent-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade git+https://github.com/aws/amazon-braket-schemas-python.git@main
pip install --upgrade git+https://github.com/aws/amazon-braket-default-simulator-python.git@main
pip install -e .
cd ..
git clone https://github.com/aws/${{ matrix.dependent }}.git
cd ${{ matrix.dependent }}
# Update the amazon-braket-sdk dependency to reference the current commit
python ${GITHUB_WORKSPACE}/.github/scripts/update_dependency.py
pip install -e .[test]
pip install tox
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you validate if this causes the tests to reference the SDK mainline instead of the current commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unsure of the behavior when you left this comment so I added a deterministic change to the tox file to ensure the setup uses the working branch for the PR.

From the test logs:

unit-tests: install_deps> python -I -m pip install git+https://github.com/amazon-braket/amazon-braket-sdk-python.git@math411-patch-4

- name: Run unit tests
run: |
cd ../${{ matrix.dependent }}
pytest
tox -e unit-tests