Adding Support to read LB_JOB_SCHEDULE for cadence (#1135) #2353
This file contains hidden or 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
| name: All Modules Import Test | |
| on: | |
| pull_request: | |
| types: [ opened, reopened, edited, ready_for_review ] | |
| push: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.BUILDER_PAT_ENCODED }} | |
| jobs: | |
| all-module-import-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@1f99358870fe1c846a3ccba386cc2b2246836776 # v2.2.1 | |
| with: | |
| egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| aws-region: ${{ secrets.GHACTION_AWS_REGION }} | |
| role-to-assume: ${{ secrets.GHACTION_AWS_ROLE }} | |
| role-session-name: ${{ secrets.GHACTION_AWS_SESSION_NAME }} | |
| - name: Install system dependencies | |
| run: | | |
| pip install shyaml | |
| pip install --upgrade pip | |
| sudo apt update | |
| sudo apt install -y wget | |
| # Install NumPy first with a compatible version | |
| pip install numpy>=1.22.0 | |
| # Install PyArrow with binary wheel - no build required | |
| pip install pyarrow --only-binary=pyarrow | |
| # Continue with other dependencies | |
| aws s3 cp ${{ secrets.BUILD_REQUIREMENTS }} /tmp/requirements.txt | |
| pip install --no-cache-dir -r /tmp/requirements.txt || true | |
| # Install main and sub modules | |
| aws s3 cp ${{ secrets.MAIN_MODULE_BUILD_PACKAGE }} /tmp/main_module.tar.gz | |
| pip install --no-cache-dir /tmp/main_module.tar.gz | |
| aws s3 cp ${{ secrets.SUB_MODULE_BUILD_PACKAGE }} /tmp/sub_module.tar.gz | |
| pip install --no-cache-dir /tmp/sub_module.tar.gz | |
| # Additional dependencies | |
| pip install --no-cache-dir matplotlib>=3.7.1 | |
| pip install setuptools wheel cython | |
| - name: Run All Modules Check | |
| run: /usr/bin/env python all_modules_test.py |