Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Ci add codeql#23812
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Ci add codeql#23812
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| name: "CodeQL" | ||
| on: | ||
| push: | ||
| branches: [main, v*.x] | ||
| pull_request: | ||
| # The branches below must be a subset of the branches above | ||
| branches: [main] | ||
| schedule: | ||
| - cron: '45 19 * * 1' | ||
| jobs: | ||
| analyze: | ||
| name: Analyze | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: ['cpp', 'javascript', 'python'] | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| if: matrix.language != 'javascript' | ||
| with: | ||
| python-version: '3.x' | ||
| - name: Install dependencies | ||
| if: matrix.language != 'javascript' | ||
| run: | | ||
| python -m pip install --upgrade pip setuptools wheel | ||
| # TODO: Use pip-tools instead when it supports build-system | ||
| # dependencies so we don't need another copy here. | ||
| # https://github.com/jazzband/pip-tools/pull/1681 | ||
| python -m pip install --upgrade \ | ||
| certifi contourpy cycler fonttools kiwisolver importlib_resources \ | ||
| numpy packaging pillow pyparsing python-dateutil setuptools-scm | ||
| echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v2 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| setup-python-dependencies: false | ||
| - name: Build compiled code | ||
| if: matrix.language == 'cpp' | ||
| run: | | ||
| mkdir ~/.cache/matplotlib | ||
| $CODEQL_PYTHON setup.py build | ||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1124,7 +1124,7 @@ class QuadMeshGenerator | ||
| inline size_t num_paths() const | ||
| { | ||
| return(size_t)m_meshWidth * m_meshHeight; | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. py_adaptors.h defines num_paths as Py_ssize_t, perhaps better for consistency, though anything will work, of course. | ||
| } | ||
| inline path_iterator operator()(size_t i) const | ||