scheduler: Fix bug in scheduling safety task #41
Workflow file for this run
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
| # ******************************************************************************* | |
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | |
| # | |
| # See the NOTICE file(s) distributed with this work for additional | |
| # information regarding copyright ownership. | |
| # | |
| # This program and the accompanying materials are made available under the | |
| # terms of the Apache License Version 2.0 which is available at | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # ******************************************************************************* | |
| name: Component Integration Tests | |
| on: | |
| push: | |
| branches: [main, development] | |
| pull_request: | |
| branches: [main, development] | |
| types: [opened, ready_for_review, reopened, synchronize] | |
| schedule: | |
| - cron: '45 1 * * *' # This runs every day at 1:45 UTC | |
| env: | |
| CARGO_TERM_COLOR: always | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| component-integration-tests: | |
| permissions: | |
| contents: read | |
| runs-on: ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || 'ubuntu-latest' }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/[email protected] | |
| - name: Setup Rust Build Environment | |
| uses: ./.github/actions/setup-rust-build | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build Rust test scenarios | |
| working-directory: tests/test_scenarios/rust | |
| run: cargo build | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Set up Python virtual environment | |
| run: | | |
| python -m venv .venv | |
| source .venv/bin/activate | |
| pip install -r tests/test_cases/requirements.txt | |
| - name: Run Python tests with pytest (PR) | |
| if: github.event_name == 'pull_request' || github.event_name == 'push' | |
| run: | | |
| source .venv/bin/activate | |
| python -m pytest --traces=all | |
| - name: Run Python tests with pytest (Nightly) | |
| if: github.event_name == 'schedule' | |
| env: | |
| NIGHTLY: TRUE | |
| run: | | |
| source .venv/bin/activate | |
| python -m pytest --traces=all --count=20 --repeat-scope=session |