Add repr bindings for dartpy #2077
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
| # https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-codeql | |
| name: CodeQL | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| paths-ignore: | |
| - "docs/**" | |
| - ".readthedocs.yml" | |
| - "tutorials/**" | |
| - "**/*.md" | |
| - "**/*.rst" | |
| - "**/*.po" | |
| - "**/*.pot" | |
| pull_request: | |
| branches: | |
| - "main" | |
| paths-ignore: | |
| - "docs/**" | |
| - ".readthedocs.yml" | |
| - "tutorials/**" | |
| - "**/*.md" | |
| - "**/*.rst" | |
| - "**/*.po" | |
| - "**/*.pot" | |
| schedule: | |
| - cron: "0 6 * * 1" # Weekly on Mondays at 06:00 UTC | |
| workflow_dispatch: | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| analyze: | |
| name: Security | CodeQL (${{ matrix.language }}) | |
| runs-on: ubuntu-latest | |
| env: | |
| BUILD_TYPE: Release | |
| DART_VERBOSE: ON | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: cpp | |
| build_mode: manual | |
| run_build: true | |
| dartpy: "OFF" | |
| gui: "OFF" | |
| - language: python | |
| build_mode: none | |
| run_build: false | |
| dartpy: "ON" | |
| gui: "ON" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| cache: true | |
| - name: Setup sccache | |
| uses: mozilla-actions/[email protected] | |
| with: | |
| disable_annotations: true | |
| - name: Configure environment for compiler cache | |
| run: | | |
| if [ -n "${ACTIONS_CACHE_URL:-}" ]; then | |
| echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | |
| else | |
| echo "SCCACHE_GHA_ENABLED=false" >> $GITHUB_ENV | |
| fi | |
| echo "DART_COMPILER_CACHE=sccache" >> $GITHUB_ENV | |
| echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV | |
| echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV | |
| echo "CCACHE_BASEDIR=${GITHUB_WORKSPACE}" >> $GITHUB_ENV | |
| echo "CCACHE_DIR=${RUNNER_TEMP}/ccache" >> $GITHUB_ENV | |
| echo "CCACHE_COMPRESS=true" >> $GITHUB_ENV | |
| echo "CCACHE_MAXSIZE=5G" >> $GITHUB_ENV | |
| mkdir -p "${RUNNER_TEMP}/ccache" | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| config-file: ./.github/codeql/config.yml | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build_mode }} | |
| - name: Configure (CMake) | |
| if: matrix.run_build | |
| env: | |
| DART_BUILD_GUI_OVERRIDE: ${{ matrix.gui }} | |
| DART_BUILD_DARTPY_OVERRIDE: ${{ matrix.dartpy }} | |
| run: | | |
| pixi run config | |
| - name: Build | |
| if: matrix.run_build | |
| env: | |
| DART_BUILD_GUI_OVERRIDE: ${{ matrix.gui }} | |
| DART_BUILD_DARTPY_OVERRIDE: ${{ matrix.dartpy }} | |
| run: | | |
| pixi run build | |
| - name: CodeQL Analyze | |
| uses: github/codeql-action/analyze@v4 |