-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correcting workflow to be independent of the Action
- Loading branch information
Nadav Ben Ami
authored and
Nadav Ben Ami
committed
Nov 7, 2024
1 parent
6d4b75a
commit 4bc23c0
Showing
1 changed file
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,27 +45,29 @@ jobs: | |
echo "IS_DEV=true" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
# Run notebook tests for all files | ||
- uses: aws-actions/[email protected] | ||
# Configure AWS credentials | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/[email protected] | ||
with: | ||
role-to-assume: ${{ inputs.aws_role }} | ||
role-to-assume: ${{ secrets.AWS_ROLE }} | ||
aws-region: us-east-1 | ||
mask-aws-account-id: true | ||
|
||
# Set authentication with M2M token | ||
- name: Set authentication | ||
run: .github/scripts/get_m2m_token.sh | ||
shell: bash | ||
env: | ||
IS_DEV: "${{ inputs.is_dev }}" | ||
M2M_SECRET_ARN: "${{ inputs.m2m_secret_arn }}" | ||
IS_DEV: "${{ env.IS_DEV }}" | ||
M2M_SECRET_ARN: "${{ env.M2M_SECRET_ARN }}" | ||
|
||
# Run Notebook Tests | ||
- name: Run Notebooks | ||
run: python -m pytest --log-cli-level=INFO tests | ||
env: | ||
JUPYTER_PLATFORM_DIRS: "1" | ||
SHOULD_TEST_ALL_FILES: "${{ inputs.should_test_all_files }}" | ||
LIST_OF_IPYNB_CHANGED: "${{ inputs.list_of_ipynb_changed }}" | ||
CLASSIQ_IDE: "${{ inputs.classiq_ide}}" | ||
CLASSIQ_HOST: "${{ inputs.classiq_host }}" | ||
|
||
SHOULD_TEST_ALL_FILES: "true" # Assuming this is always set to 'true' in the workflow | ||
LIST_OF_IPYNB_CHANGED: "**/*.ipynb" # Set to match all notebook files | ||
CLASSIQ_IDE: "${{ env.CLASSIQ_IDE }}" | ||
CLASSIQ_HOST: "${{ env.CLASSIQ_HOST }}" | ||
shell: bash |