-
Notifications
You must be signed in to change notification settings - Fork 874
Expand file tree
/
Copy pathTest-CI-daily-notebooks-tutorials.yml
More file actions
52 lines (44 loc) · 1.6 KB
/
Test-CI-daily-notebooks-tutorials.yml
File metadata and controls
52 lines (44 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "Test CI (weekly) (notebooks: tutorials)"
on:
schedule:
- cron: "00 12 * * 6" # Saturday, 12:00 UTC
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
nightly-test:
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python and classiq and nightly aws
uses: ./.github/actions/setup_classiq_on_nightly
with:
aws-role: ${{ secrets.AWS_ROLE }}
codeartifact-domain: ${{ secrets.CODEARTIFACT_DOMAIN }}
codeartifact-owner: ${{ secrets.CODEARTIFACT_OWNER }}
codeartifact-region: ${{ secrets.CODEARTIFACT_REGION }}
nightly-m2m-secret-arn: ${{ secrets.NIGHTLY_M2M_SECRET_ARN }}
pypi-nightly-name: ${{ secrets.PYPI_NIGHTLY_NAME }}
- name: Get notebooks to tests
id: list-files
run: |
shopt -s globstar
echo "files=$(echo tutorials/**/*.ipynb)" >> $GITHUB_OUTPUT
# Run Notebook Tests
- name: Run Notebooks
run: python -m pytest -c tests/config_weekly.ini tests/notebooks
env:
# to disable a warning in Jupyter notebooks
JUPYTER_PLATFORM_DIRS: "1"
# Passing which notebooks changed
SHOULD_TEST_ALL_FILES: "false"
LIST_OF_IPYNB_CHANGED: "${{ steps.list-files.outputs.files }}"
LIST_OF_IPYNB_TESTS_CHANGED: ""
# Passing environment information
CLASSIQ_IDE: "https://nightly.platform.classiq.io"
CLASSIQ_HOST: "https://nightly.platform.classiq.io"