Conversation
Fix and handle tabs in yaml files
update the ci to test python 3.13
IO of open foam files in python
Centralize postprocess
Add flat panel reactor tutorial and add it to the ci
Robustify post process
Fix compute fitted kla
…ead from phaseProperties
Fall cleanup
Comment on lines
+15
to
+62
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| shell: bash -l {0} | ||
| working-directory: ${{github.workspace}} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.13' | ||
| cache: 'pip' | ||
|
|
||
| - name: Set up micromamba | ||
| uses: mamba-org/setup-micromamba@v1 | ||
| with: | ||
| environment-name: test-env | ||
| create-args: >- | ||
| python=${{ matrix.python-version }} | ||
| channels: conda-forge | ||
| channel-priority: strict | ||
| cache-downloads: true | ||
| cache-env: true | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| micromamba install --yes -n test-env -c conda-forge paraview | ||
| pip install --upgrade pip | ||
| pip install pytest | ||
| pip install pytest-cov | ||
| pip install -e . | ||
|
|
||
| - name: Generate coverage report | ||
| run: | | ||
| pytest --cov=./ --cov-report=xml:coverage.xml | ||
| - name: Upload coverage to Codecov | ||
|
|
||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| file: ./coverage.xml | ||
| flags: unittests | ||
| env_vars: OS,PYTHON | ||
| name: codecov-umbrella | ||
| fail_ci_if_error: false | ||
| verbose: true |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 4 months ago
To address this CodeQL warning, we should add an explicit permissions block in the workflow file. Since none of the workflow steps write to the repository or require elevated privileges, the minimum required permission for GITHUB_TOKEN is contents: read. The best way to fix the problem is to add the following under the workflow's top-level keys, immediately after name: CodeCov and before on:. This will apply contents: read permissions to all jobs in the workflow unless a more specific permissions block is later added.
Suggested changeset
1
.github/workflows/codecov.yml
| @@ -1,4 +1,6 @@ | ||
| name: CodeCov | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: |
Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.