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

moving action to test-ci-dev #584

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nightly Notebook Tests
name: Test CI Dev

on:
# Schedule the workflow to run every day at 19:00 UTC
Expand Down Expand Up @@ -45,17 +45,27 @@ jobs:
echo "IS_DEV=true" >> $GITHUB_ENV
shell: bash

# Run notebook tests for all files
- name: Run all notebook tests
uses: ./.github/actions/run-tests
# Run notebook tests for all files
- uses: aws-actions/[email protected]
with:
# Run tests on all notebooks
should_test_all_files: true
list_of_ipynb_changed: "**/*.ipynb" # You can pass all notebooks directly
# aws environment
m2m_secret_arn: ${{ env.M2M_SECRET_ARN }}
aws_role: ${{ secrets.AWS_ROLE }}
is_dev: ${{ env.IS_DEV }}
# environment
classiq_ide: ${{ env.CLASSIQ_IDE }}
classiq_host: ${{ env.CLASSIQ_HOST }}
role-to-assume: ${{ inputs.aws_role }}
aws-region: us-east-1
mask-aws-account-id: true

- 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 }}"

- 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 }}"

shell: bash
Loading