Skip to content

Commit

Permalink
correcting workflow to be independent of the Action
Browse files Browse the repository at this point in the history
  • 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.
22 changes: 12 additions & 10 deletions .github/workflows/test-ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4bc23c0

Please sign in to comment.